fix windows

This commit is contained in:
Andrew Gallant 2016-09-25 21:48:01 -04:00
parent f85822266f
commit 19e405e5c5

View File

@ -308,7 +308,7 @@ impl<W: Terminal + Send> Printer<W> {
}
#[cfg(not(unix))]
fn write_path<P: AsRef<Path>>(&mut self, p: P) {
fn write_path<P: AsRef<Path>>(&mut self, path: P) {
self.write(path.as_ref().to_string_lossy().as_bytes());
}