We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
new()
1 parent 07879ca commit ba8e176Copy full SHA for ba8e176
crates/cpu_timer/src/lib.rs
@@ -81,7 +81,7 @@ pub struct CPUTimer {}
81
82
impl CPUTimer {
83
#[cfg(not(target_os = "linux"))]
84
- pub fn new(_: u64) -> Result<Self, Error> {
+ pub fn new() -> Result<Self, Error> {
85
log::error!("CPU timer: not enabled (need Linux)");
86
Ok(Self {})
87
}
0 commit comments