apply clippy fixes

This commit is contained in:
Dustin J. Mitchell
2022-12-23 18:56:58 +00:00
committed by Dustin J. Mitchell
parent 88333ac785
commit f1e1095c0a
6 changed files with 32 additions and 32 deletions

View File

@@ -23,7 +23,7 @@ impl PassByValue for libc::time_t {
if self == 0 {
None
} else {
Some(Utc.timestamp(self as i64, 0))
Some(Utc.timestamp(self, 0))
}
}

View File

@@ -349,7 +349,7 @@ pub unsafe extern "C" fn tc_replica_undo(rep: *mut TCReplica, undone_out: *mut i
wrap(
rep,
|rep| {
let undone = if rep.undo()? { 1 } else { 0 };
let undone = i32::from(rep.undo()?);
if !undone_out.is_null() {
// SAFETY:
// - undone_out is not NULL (just checked)