~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.
a4af5644
—
Jasper van Herpt 3 years ago
Run cargo fmt
- 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 {
|
|
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> {
|