mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 05:18:24 +00:00
Format with rustfmt
This commit is contained in:
parent
f08712cd0a
commit
4264ae49c0
@ -46,7 +46,7 @@ impl LogLevel {
|
||||
LogLevel::Warn => LogFlag::DisableWarn,
|
||||
LogLevel::Info => LogFlag::DisableInfo,
|
||||
LogLevel::Debug => LogFlag::DisableDebug,
|
||||
_ => 0
|
||||
_ => 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -135,5 +135,5 @@ macro_rules! debug {
|
||||
#[cfg(not(debug_assertions))]
|
||||
#[macro_export]
|
||||
macro_rules! debug {
|
||||
($($arg:tt)+) => ()
|
||||
($($arg:tt)+) => {};
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::fmt::Arguments;
|
||||
use base::*;
|
||||
use base::ffi::LogLevel;
|
||||
use base::*;
|
||||
use std::fmt::Arguments;
|
||||
|
||||
#[allow(dead_code, non_camel_case_types)]
|
||||
#[repr(i32)]
|
||||
@ -28,7 +28,7 @@ fn level_to_prio(level: LogLevel) -> i32 {
|
||||
LogLevel::Warn => ALogPriority::ANDROID_LOG_WARN as i32,
|
||||
LogLevel::Info => ALogPriority::ANDROID_LOG_INFO as i32,
|
||||
LogLevel::Debug => ALogPriority::ANDROID_LOG_DEBUG as i32,
|
||||
_ => 0
|
||||
_ => 0,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::fmt::Arguments;
|
||||
use base::*;
|
||||
use base::ffi::LogLevel;
|
||||
use base::*;
|
||||
use std::fmt::Arguments;
|
||||
|
||||
extern "C" {
|
||||
fn klog_write(msg: *const u8, len: i32);
|
||||
|
Loading…
x
Reference in New Issue
Block a user