~repos /rust-embed

#rust#proc-macro#http

git clone https://pyrossh.dev/repos/rust-embed.git
Discussions: https://groups.google.com/g/rust-embed-devs

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


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
  }