Format with rustfmt

This commit is contained in:
topjohnwu 2022-07-22 03:53:50 -07:00
parent f08712cd0a
commit 4264ae49c0
3 changed files with 7 additions and 7 deletions

View File

@ -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)+) => {};
}

View File

@ -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,
}
}

View File

@ -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);