Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
use the old location of DefaultHasher for compatability with older ve…
Browse files Browse the repository at this point in the history
…rsions of rust
  • Loading branch information
khyerdev committed Apr 27, 2024
1 parent 8180c55 commit 49a20c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 49a20c8

Please sign in to comment.