it does indeed work on windows

This commit is contained in:
Lynne Megido 2021-02-27 12:24:51 +10:00
parent ebc2bcfb41
commit 52a0709097
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
3 changed files with 2 additions and 3 deletions

View file

@ -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::*;

View file

@ -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)
}
}
}