summaryrefslogtreecommitdiffstats
path: root/src/util/mimetype.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/mimetype.rs')
-rw-r--r--src/util/mimetype.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/mimetype.rs b/src/util/mimetype.rs
index 423cb2f..e4859b6 100644
--- a/src/util/mimetype.rs
+++ b/src/util/mimetype.rs
@@ -21,7 +21,7 @@ impl Mimetype {
}
pub fn get_subtype(&self) -> &str {
- &&self._subtype
+ &self._subtype
}
}
@@ -51,7 +51,7 @@ pub fn get_mimetype(p: &Path) -> JoshutoResult<Mimetype> {
JoshutoErrorKind::Io(io::ErrorKind::InvalidInput),
"Unknown mimetype".to_string(),
);
- return Err(error);
+ Err(error)
}
}
}