Commit 4264ae49 authored by topjohnwu's avatar topjohnwu

Format with rustfmt

parent f08712cd
...@@ -46,7 +46,7 @@ impl LogLevel { ...@@ -46,7 +46,7 @@ impl LogLevel {
LogLevel::Warn => LogFlag::DisableWarn, LogLevel::Warn => LogFlag::DisableWarn,
LogLevel::Info => LogFlag::DisableInfo, LogLevel::Info => LogFlag::DisableInfo,
LogLevel::Debug => LogFlag::DisableDebug, LogLevel::Debug => LogFlag::DisableDebug,
_ => 0 _ => 0,
} }
} }
} }
...@@ -135,5 +135,5 @@ macro_rules! debug { ...@@ -135,5 +135,5 @@ macro_rules! debug {
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
#[macro_export] #[macro_export]
macro_rules! debug { macro_rules! debug {
($($arg:tt)+) => () ($($arg:tt)+) => {};
} }
use std::fmt::Arguments;
use base::*;
use base::ffi::LogLevel; use base::ffi::LogLevel;
use base::*;
use std::fmt::Arguments;
#[allow(dead_code, non_camel_case_types)] #[allow(dead_code, non_camel_case_types)]
#[repr(i32)] #[repr(i32)]
...@@ -28,7 +28,7 @@ fn level_to_prio(level: LogLevel) -> i32 { ...@@ -28,7 +28,7 @@ fn level_to_prio(level: LogLevel) -> i32 {
LogLevel::Warn => ALogPriority::ANDROID_LOG_WARN as i32, LogLevel::Warn => ALogPriority::ANDROID_LOG_WARN as i32,
LogLevel::Info => ALogPriority::ANDROID_LOG_INFO as i32, LogLevel::Info => ALogPriority::ANDROID_LOG_INFO as i32,
LogLevel::Debug => ALogPriority::ANDROID_LOG_DEBUG as i32, LogLevel::Debug => ALogPriority::ANDROID_LOG_DEBUG as i32,
_ => 0 _ => 0,
} }
} }
......
use std::fmt::Arguments;
use base::*;
use base::ffi::LogLevel; use base::ffi::LogLevel;
use base::*;
use std::fmt::Arguments;
extern "C" { extern "C" {
fn klog_write(msg: *const u8, len: i32); fn klog_write(msg: *const u8, len: i32);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment