diff --git a/native/rust/base/src/logging.rs b/native/rust/base/src/logging.rs index 0c6dbfaf9..a9415c172 100644 --- a/native/rust/base/src/logging.rs +++ b/native/rust/base/src/logging.rs @@ -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)+) => {}; } diff --git a/native/rust/core/src/logging.rs b/native/rust/core/src/logging.rs index dc213cdfe..02a1fcdde 100644 --- a/native/rust/core/src/logging.rs +++ b/native/rust/core/src/logging.rs @@ -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, } } diff --git a/native/rust/init/src/logging.rs b/native/rust/init/src/logging.rs index 3b0d7ef1a..b2add8e29 100644 --- a/native/rust/init/src/logging.rs +++ b/native/rust/init/src/logging.rs @@ -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);