diff --git a/src/formats.rs b/src/formats.rs index 8889db1..0a2d71b 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -48,7 +48,7 @@ fn smart_write(f: &mut W, writeables: &[Writable]) -> io::Result<()> { f.write_all(&*path.as_os_str().as_bytes())?; #[cfg(windows)] write!(f, "{}", path.as_os_str().to_string_lossy())?; // TODO: implement bonked strings for windows - // f.write_all(&*path.as_os_str().encode_wide().collect::>())?; + // f.write_all(&*path.as_os_str().encode_wide().collect::>())?; write!(f, "'''")? } } diff --git a/src/main.rs b/src/main.rs index 752f6cb..0ebb771 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,7 +50,6 @@ cfg_if! { } cfg_if! { - // TODO: test if this actually works on a windows machine if #[cfg(windows)] { fn is_hidden(entry: &DirEntry) -> bool { use std::os::windows::prelude::*; diff --git a/src/mimedb.rs b/src/mimedb.rs index 1e668a1..613a4ba 100644 --- a/src/mimedb.rs +++ b/src/mimedb.rs @@ -92,7 +92,7 @@ cfg_if! { } fn get_type(&self, data: &[u8]) -> Option { - self.db.get_mime_type_for_data(&data).map(|m| m.0) + self.db.get_mime_type_for_data(data).map(|m| m.0) } } }