Skip to content

Commit ba8e176

Browse files
fix: CPUTimer wrong new() definition for 'non linux' os (#611)
1 parent 07879ca commit ba8e176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cpu_timer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct CPUTimer {}
8181

8282
impl CPUTimer {
8383
#[cfg(not(target_os = "linux"))]
84-
pub fn new(_: u64) -> Result<Self, Error> {
84+
pub fn new() -> Result<Self, Error> {
8585
log::error!("CPU timer: not enabled (need Linux)");
8686
Ok(Self {})
8787
}

0 commit comments

Comments
 (0)