Consolidate for_each implementation into Rust

This commit is contained in:
topjohnwu
2025-08-25 01:31:47 -07:00
committed by John Wu
parent 78f5cd55c7
commit e91fc75d86
12 changed files with 103 additions and 103 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ impl MagiskInit {
pub(crate) fn parse_config_file(&mut self) {
if let Ok(fd) = cstr!("/data/.backup/.magisk").open(O_RDONLY) {
let mut reader = BufReader::new(fd);
reader.foreach_props(|key, val| {
reader.for_each_prop(|key, val| {
if key == "PREINITDEVICE" {
self.preinit_dev = val.to_string();
return false;