Skip to content

Commit 5701061

Browse files
committed
Fix new (v1.66) Clippy warnings
1 parent ee4a51c commit 5701061

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

derive/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl ItemNursery {
6767
if !inserted {
6868
return Err(syn::Error::new(
6969
item.attr_name.span(),
70-
&format!("Duplicated #[py*] attribute found for {:?}", &item.py_names),
70+
format!("Duplicated #[py*] attribute found for {:?}", &item.py_names),
7171
));
7272
}
7373
}

vm/src/stdlib/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ pub(super) mod _os {
15211521
};
15221522

15231523
let tick_for_second = unsafe { libc::sysconf(libc::_SC_CLK_TCK) } as f64;
1524-
let c = unsafe { libc::times(&mut t as *mut _) } as i64;
1524+
let c = unsafe { libc::times(&mut t as *mut _) };
15251525

15261526
if c == -1 {
15271527
return Err(vm.new_os_error("Fail to get times".to_string()));

0 commit comments

Comments
 (0)