From 7e8e013832d065880f07335913188f96cb74a688 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 13 Jun 2023 16:18:46 +0800 Subject: [PATCH] Fix two typo --- native/src/boot/lib.rs | 1 - native/src/boot/ramdisk.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/native/src/boot/lib.rs b/native/src/boot/lib.rs index d1bbf5acf..f892c2b9f 100644 --- a/native/src/boot/lib.rs +++ b/native/src/boot/lib.rs @@ -1,6 +1,5 @@ #![feature(format_args_nl)] #![feature(btree_drain_filter)] -#![feature(iter_collect_into)] extern crate core; diff --git a/native/src/boot/ramdisk.rs b/native/src/boot/ramdisk.rs index 2ee849e91..f0e5d4121 100644 --- a/native/src/boot/ramdisk.rs +++ b/native/src/boot/ramdisk.rs @@ -138,7 +138,7 @@ impl MagiskCpio for Cpio { o.rm(".backup", true); self.rm(".backup", true); - let mut lhs = o.entries.drain_filter(|_, _| true).peekable(); + let mut lhs = o.entries.into_iter().peekable(); let mut rhs = self.entries.iter().peekable(); loop {