fix clippy warning

This commit is contained in:
Dietrich 2020-11-16 13:08:37 +01:00
parent 10d9e3e71e
commit 0a1bb3bd7e

View File

@ -120,7 +120,7 @@ impl LockedFileGuard {
|_| Ok(()),
)?;
// Read the last character
let mut b = [0 as u8; 1];
let mut b = [0_u8; 1];
self.file.read_exact(&mut b)?;
// Verify it is '\n' else append '\n' so in any case the file ends with with a newline now
if &b != b"\n" {