~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
f4ef0c74
—
BBaoVanC 2 years ago
Make Metadata::mimetype return &str
- utils/src/lib.rs +1 -1
utils/src/lib.rs
CHANGED
|
@@ -115,7 +115,7 @@ impl Metadata {
|
|
|
115
115
|
|
|
116
116
|
/// The mime type of the file
|
|
117
117
|
#[cfg(feature = "mime-guess")]
|
|
118
|
-
pub fn mimetype(&self) -> &
|
|
118
|
+
pub fn mimetype(&self) -> &str {
|
|
119
119
|
&self.mimetype
|
|
120
120
|
}
|
|
121
121
|
}
|