refactor: switch lints from allow(x) to expect(x)`

This commit is contained in:
Jack Wills
2024-09-06 22:48:36 +00:00
parent 5d77f1e02a
commit 2a0ab6d81c
8 changed files with 20 additions and 28 deletions
+2 -2
View File
@@ -151,7 +151,7 @@ impl AppData {
}
/// Current time as unix timestamp
#[allow(clippy::expect_used)]
#[expect(clippy::expect_used)]
fn get_systemtime() -> u64 {
SystemTime::now()
.duration_since(UNIX_EPOCH)
@@ -933,7 +933,7 @@ impl AppData {
}
#[cfg(test)]
#[allow(clippy::unwrap_used, clippy::many_single_char_names)]
#[expect(clippy::unwrap_used)]
mod tests {
use super::*;