time: clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-11-29 14:55:22 +01:00
parent 36e064d73a
commit 60fa521095
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#![allow(clippy::manual_range_contains)]
use std::ffi::{CStr, CString};
use anyhow::{bail, format_err, Error};

View File

@ -388,6 +388,7 @@ mod test {
}
#[test]
#[allow(clippy::identity_op)]
fn test_compute_next_event() -> Result<(), Error> {
let test_value = |v: &'static str, last: i64, expect: i64| -> Result<i64, Error> {