From 82247f7ab9d203977e47ec10f59ad1431c502178 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sat, 9 Mar 2024 20:44:49 -0500 Subject: [PATCH] fix test Signed-off-by: strawberry --- src/service/media/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/media/mod.rs b/src/service/media/mod.rs index 2862a76d..cdda1da1 100644 --- a/src/service/media/mod.rs +++ b/src/service/media/mod.rs @@ -518,7 +518,7 @@ mod tests { // r.push(base64::encode_config(key, base64::URL_SAFE_NO_PAD)); // use the sha256 hash of the key as the file name instead of the key itself // this is because the base64 encoded key can be longer than 255 characters. - r.push(general_purpose::URL_SAFE_NO_PAD.encode(sha2::Sha256::digest(key))); + r.push(general_purpose::URL_SAFE_NO_PAD.encode(::digest(key))); // Check that the file path is not longer than 255 characters // (255 is the maximum length of a file path on most file systems) assert!(