Remove usage of array_chunks
It has been removed in newer rustc versions
This commit is contained in:
+3
-1
@@ -193,7 +193,9 @@ pub fn get_interrupt(fdt: &Fdt, node: &FdtNode, idx: usize) -> Option<IrqCell> {
|
||||
.unwrap();
|
||||
let mut intr = interrupts
|
||||
.value
|
||||
.array_chunks::<4>()
|
||||
.as_chunks::<4>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|f| BE::read_u32(f))
|
||||
.skip(parent_interrupt_cells * idx);
|
||||
match parent_interrupt_cells {
|
||||
|
||||
+1
-1
@@ -45,11 +45,11 @@
|
||||
#![feature(iter_next_chunk)]
|
||||
#![feature(let_chains)]
|
||||
#![feature(naked_functions)]
|
||||
#![feature(slice_as_chunks)]
|
||||
#![feature(sync_unsafe_cell)]
|
||||
#![feature(variant_count)]
|
||||
#![cfg_attr(not(test), no_std)]
|
||||
#![cfg_attr(not(test), no_main)]
|
||||
#![feature(array_chunks)]
|
||||
#![feature(if_let_guard)]
|
||||
#![feature(iterator_try_collect)]
|
||||
#![feature(new_zeroed_alloc)]
|
||||
|
||||
Reference in New Issue
Block a user