Fix unused import warning on windows

This commit is contained in:
Max Brunsfeld 2021-03-11 16:43:09 -08:00
parent d366356299
commit 08d17e33bd

View file

@ -1,4 +1,4 @@
use super::error::{Error, Result};
use super::error::Result;
use std::io;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
@ -40,6 +40,7 @@ pub fn log_graphs(_parser: &mut Parser, _path: &str) -> Result<LogSession> {
#[cfg(unix)]
pub fn log_graphs(parser: &mut Parser, path: &str) -> Result<LogSession> {
use super::error::Error;
use std::io::Write;
let mut dot_file = std::fs::File::create(path)?;