~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 +3 -1
utils/src/lib.rs CHANGED
@@ -108,7 +108,9 @@ impl Metadata {
108
108
  }
109
109
 
110
110
  /// Check if an entry is a directory
111
- pub fn is_dir(&self) -> bool { self.is_dir }
111
+ pub fn is_dir(&self) -> bool {
112
+ self.is_dir
113
+ }
112
114
  }
113
115
 
114
116
  pub fn read_file_from_fs(file_path: &Path) -> io::Result<EmbeddedFile> {