diff --git a/src/console/mod.rs b/src/console/mod.rs index baeb435..9b36f95 100644 --- a/src/console/mod.rs +++ b/src/console/mod.rs @@ -202,7 +202,7 @@ impl Console { } fn log(&mut self, record: &log::LogRecord) { - let mut file = record.location().file(); + let mut file = &record.location().file().replace("\\", "/")[..]; if let Some(pos) = file.rfind("src/") { file = &file[pos + 4..]; }