Skip to content

Commit 2581c25

Browse files
author
Marcin Radomski
committed
Reformat with 1.85 toolchain
1 parent 3aa2a12 commit 2581c25

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/platform_log_writer.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::arrays::slice_assume_init_ref;
2-
use crate::{android_log, uninit_array, LogId, LOGGING_MSG_MAX_LEN};
2+
use crate::{LOGGING_MSG_MAX_LEN, LogId, android_log, uninit_array};
33
use log::Level;
44
#[cfg(target_os = "android")]
55
use log_ffi::LogPriority;
@@ -153,11 +153,7 @@ impl fmt::Write for PlatformLogWriter<'_> {
153153
.enumerate()
154154
.fold(None, |acc, (i, (output, input))| {
155155
output.write(*input);
156-
if *input == b'\n' {
157-
Some(i)
158-
} else {
159-
acc
160-
}
156+
if *input == b'\n' { Some(i) } else { acc }
161157
});
162158

163159
// update last \n index

0 commit comments

Comments
 (0)