diff options
Diffstat (limited to 'src/file/format/mod.rs')
-rw-r--r-- | src/file/format/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs index 366fa45..b3cf279 100644 --- a/src/file/format/mod.rs +++ b/src/file/format/mod.rs @@ -54,6 +54,9 @@ impl FileFormat { // TODO: pub(crate) #[doc(hidden)] pub fn extensions(&self) -> &'static Vec<&'static str> { + // It should not be possible for this to fail + // A FileFormat would need to be declared without being added to the + // ALL_EXTENSIONS map. ALL_EXTENSIONS.get(self).unwrap() } |