rust-embed v8.11.0

#rust#proc-macro#http

git clone https://git.pyrossh.dev/rust-embed

rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.


f4ef0c7BBaoVanC 2023-01-18T14:35:51-06:00
Make Metadata::mimetype return &str
Files changed (1) hide show
  1. 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) -> &Cow<str> {
118
+ pub fn mimetype(&self) -> &str {
119
119
  &self.mimetype
120
120
  }
121
121
  }