summaryrefslogtreecommitdiff
path: root/cli/http_cache.rs
diff options
context:
space:
mode:
authorValentin Anger <syrupthinker@gryphno.de>2020-06-29 14:17:37 +0200
committerGitHub <noreply@github.com>2020-06-29 14:17:37 +0200
commitdb36857288609858ada259444509a31637980ce3 (patch)
tree9fc83f32408941bdf75d803b4b0dbffe297c10f2 /cli/http_cache.rs
parent0374eadcf7ecb054dae1b1587843a2006fdf4c2d (diff)
refactor: util functions take slices instead of heap values (#6547)
Diffstat (limited to 'cli/http_cache.rs')
-rw-r--r--cli/http_cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/http_cache.rs b/cli/http_cache.rs
index 23b482840..8cfcc736a 100644
--- a/cli/http_cache.rs
+++ b/cli/http_cache.rs
@@ -64,7 +64,7 @@ pub fn url_to_filename(url: &Url) -> PathBuf {
// NOTE: fragment is omitted on purpose - it's not taken into
// account when caching - it denotes parts of webpage, which
// in case of static resources doesn't make much sense
- let hashed_filename = crate::checksum::gen(vec![rest_str.as_bytes()]);
+ let hashed_filename = crate::checksum::gen(&[rest_str.as_bytes()]);
cache_filename.push(hashed_filename);
cache_filename
}