fix clippy warning
This commit is contained in:
parent
10d9e3e71e
commit
0a1bb3bd7e
@ -120,7 +120,7 @@ impl LockedFileGuard {
|
|||||||
|_| Ok(()),
|
|_| Ok(()),
|
||||||
)?;
|
)?;
|
||||||
// Read the last character
|
// Read the last character
|
||||||
let mut b = [0 as u8; 1];
|
let mut b = [0_u8; 1];
|
||||||
self.file.read_exact(&mut b)?;
|
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
|
// Verify it is '\n' else append '\n' so in any case the file ends with with a newline now
|
||||||
if &b != b"\n" {
|
if &b != b"\n" {
|
||||||
|
Loading…
Reference in New Issue
Block a user