Skip to content

Commit 5990020

Browse files
committed
Fix warning on non-Linux platforms
1 parent e59a9f9 commit 5990020

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::{
22
env,
3-
fmt::Write as _,
43
fs::File,
54
io::{BufReader, BufWriter, Read, Write},
65
path::PathBuf,
@@ -35,9 +34,11 @@ pub enum Workload {
3534

3635
#[cfg(target_os = "linux")]
3736
mod arch {
38-
use indicatif::{ProgressBar, ProgressStyle};
37+
use std::fmt::Write;
3938
use std::time::Duration;
4039

40+
use indicatif::{ProgressBar, ProgressStyle};
41+
4142
use super::*;
4243

4344
pub const SPAWN_ERROR: &str = "could not spawn perf";

0 commit comments

Comments
 (0)