You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Optimize and format imports
[skip ci]
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
use crate::ffi::{backup_init, BootConfig, MagiskInit};
|
||||
use base::{path, BytesExt, MappedFile};
|
||||
use crate::ffi::{BootConfig, MagiskInit, backup_init};
|
||||
use base::{BytesExt, MappedFile, path};
|
||||
|
||||
impl BootConfig {
|
||||
#[allow(unused_imports, unused_unsafe)]
|
||||
pub(crate) fn print(&self) {
|
||||
use base::{debug, Utf8CStr};
|
||||
use base::{Utf8CStr, debug};
|
||||
debug!("skip_initramfs=[{}]", self.skip_initramfs);
|
||||
debug!("force_normal_boot=[{}]", self.force_normal_boot);
|
||||
debug!("rootwait=[{}]", self.rootwait);
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use base::{
|
||||
cstr,
|
||||
LOGGER, LogLevel, Logger, Utf8CStr, cstr,
|
||||
libc::{
|
||||
makedev, mknod, syscall, SYS_dup3, O_CLOEXEC, O_RDWR, O_WRONLY, STDERR_FILENO,
|
||||
STDIN_FILENO, STDOUT_FILENO, S_IFCHR,
|
||||
O_CLOEXEC, O_RDWR, O_WRONLY, S_IFCHR, STDERR_FILENO, STDIN_FILENO, STDOUT_FILENO, SYS_dup3,
|
||||
makedev, mknod, syscall,
|
||||
},
|
||||
open_fd, path, raw_cstr, LogLevel, Logger, Utf8CStr, LOGGER,
|
||||
open_fd, path, raw_cstr,
|
||||
};
|
||||
use std::{
|
||||
fs::File,
|
||||
|
||||
Reference in New Issue
Block a user