Skip to content

Commit c12b87a

Browse files
committed
Moved trigger_lazy import into tests module
Makes clippy happy Signed-off-by: Christian Jordan <[email protected]>
1 parent 20c4ad7 commit c12b87a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/platform/nix_impl/profiler.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use smallvec::SmallVec;
77
use nix::sys::signal;
88

99
use crate::error::Result;
10-
use crate::profiler::{trigger_lazy, PROFILER};
10+
use crate::profiler::PROFILER;
1111
use crate::{MAX_DEPTH, MAX_THREAD_NAME};
1212

1313
pub fn register() -> Result<()> {
@@ -187,6 +187,7 @@ extern "C" fn perf_signal_handler(
187187
#[cfg(test)]
188188
mod tests {
189189
use super::*;
190+
use crate::profiler::trigger_lazy;
190191

191192
use std::cell::RefCell;
192193
use std::ffi::c_void;

0 commit comments

Comments
 (0)