We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee4a51c commit 5701061Copy full SHA for 5701061
derive/src/util.rs
@@ -67,7 +67,7 @@ impl ItemNursery {
67
if !inserted {
68
return Err(syn::Error::new(
69
item.attr_name.span(),
70
- &format!("Duplicated #[py*] attribute found for {:?}", &item.py_names),
+ format!("Duplicated #[py*] attribute found for {:?}", &item.py_names),
71
));
72
}
73
vm/src/stdlib/os.rs
@@ -1521,7 +1521,7 @@ pub(super) mod _os {
1521
};
1522
1523
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;
+ let c = unsafe { libc::times(&mut t as *mut _) };
1525
1526
if c == -1 {
1527
return Err(vm.new_os_error("Fail to get times".to_string()));
0 commit comments