diff --git a/src/macros.rs b/src/macros.rs index f890d27..1c87656 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -4,11 +4,14 @@ macro_rules! log { ($log_level: expr, $($arg: tt)+) => ({ - let file_path: &std::path::Path; + // Specifically use the Path from std in this block. + use std::path::Path; + + let file_path: &Path; let mut file_name: &str; file_name = file!(); - file_path = std::path::Path::new(file!()); + file_path = Path::new(file!()); match file_path.file_name() { Some(name) =>