apply clippy fixes
This commit is contained in:
committed by
Dustin J. Mitchell
parent
88333ac785
commit
f1e1095c0a
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user