diff options
author | Joris | 2023-04-17 21:10:48 +0200 |
---|---|---|
committer | Joris | 2023-04-17 21:10:48 +0200 |
commit | 459016e70dd4933a8082d27748097de81a3e53ff (patch) | |
tree | 0ed14ecc8762d62a55bf8c05356bcc984b1a0cea /src/assets.rs | |
parent | 3932daa26360d6e03807381d0b8ffa2d0e704847 (diff) |
Follow clippy indications
Diffstat (limited to 'src/assets.rs')
-rw-r--r-- | src/assets.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assets.rs b/src/assets.rs index dc46c78..80f9630 100644 --- a/src/assets.rs +++ b/src/assets.rs @@ -7,7 +7,7 @@ pub fn get() -> HashMap<String, String> { let paths = fs::read_dir("assets").unwrap().map(|e| { let path = format!("{}", e.unwrap().path().display()); let file = fs::read(&path).unwrap(); - let mut path_iter = path.split("/"); + let mut path_iter = path.split('/'); path_iter.next(); let name = path_iter.collect::<Vec<&str>>().join("/"); let hashed = format!("/assets/{}/{}", sha256(file), name); |