diff options
Diffstat (limited to 'src/filetype.rs')
-rw-r--r-- | src/filetype.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filetype.rs b/src/filetype.rs index 958deb8..6b4beca 100644 --- a/src/filetype.rs +++ b/src/filetype.rs @@ -126,7 +126,7 @@ impl<'a> HasType for File<'a> { if source_files.len() == 0 { return Normal; } - else if source_files.iter().any(|path| self.dir.contains(path)) { + else if source_files.iter().any(|path| self.dir.map(|d| d.contains(path)).unwrap_or(false)) { return Temp; } else { |