From 49a20c86e586b672423d754a80784337cc6fb201 Mon Sep 17 00:00:00 2001 From: khyernet Date: Sat, 27 Apr 2024 14:42:47 -0800 Subject: [PATCH] use the old location of DefaultHasher for compatability with older versions of rust --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d03d985..9c71f62 100644 --- a/src/main.rs +++ b/src/main.rs @@ -173,7 +173,7 @@ async fn execute_get_media(args: Args, bulk: u16, debug: bool) -> bool { }, None => { if debug { eprintln!("[DEBUG {download_url}] No filename specified, generating random filename ...") }; - let mut hasher = std::hash::DefaultHasher::new(); + let mut hasher = std::collections::hash_map::DefaultHasher::new(); download_url.hash(&mut hasher); let mut hash = format!("{:x}", hasher.finish()); if args.c_twitter_gif {