it does indeed work on windows
This commit is contained in:
parent
ebc2bcfb41
commit
52a0709097
3 changed files with 2 additions and 3 deletions
|
@ -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::*;
|
||||
|
|
|
@ -92,7 +92,7 @@ cfg_if! {
|
|||
}
|
||||
|
||||
fn get_type(&self, data: &[u8]) -> Option<Mime> {
|
||||
self.db.get_mime_type_for_data(&data).map(|m| m.0)
|
||||
self.db.get_mime_type_for_data(data).map(|m| m.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue