~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. impl/src/lib.rs +1 -1
impl/src/lib.rs CHANGED
@@ -176,7 +176,7 @@ fn embed_file(rel_path: &str, full_canonical_path: &str) -> TokenStream2 {
176
176
  };
177
177
  #[cfg(feature = "mime-guess")]
178
178
  let mimetype = {
179
- let mt = file.metadata.mimetype().to_string();
179
+ let mt = file.metadata.mimetype();
180
180
  quote! { #mt }
181
181
  };
182
182
  #[cfg(not(feature = "mime-guess"))]