From db36857288609858ada259444509a31637980ce3 Mon Sep 17 00:00:00 2001 From: Valentin Anger Date: Mon, 29 Jun 2020 14:17:37 +0200 Subject: refactor: util functions take slices instead of heap values (#6547) --- cli/http_cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/http_cache.rs') 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 } -- cgit v1.2.3