From 0a1bb3bd7e238f4f97b879e97d9a4a5eba8fd5f2 Mon Sep 17 00:00:00 2001 From: Dietrich Date: Mon, 16 Nov 2020 13:08:37 +0100 Subject: [PATCH] fix clippy warning --- src/userlib/files.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userlib/files.rs b/src/userlib/files.rs index 10d8442..c3afb27 100644 --- a/src/userlib/files.rs +++ b/src/userlib/files.rs @@ -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" {