From 6d011f620f2eff975c4dcff0148dc0ab595f3192 Mon Sep 17 00:00:00 2001 From: andros21 Date: Sun, 11 Feb 2024 14:34:57 +0100 Subject: [PATCH] chore(src/lib.rs): `{RandomState, DefaultHasher}` now exported in `std::hash` see https://github.com/rust-lang/rust/releases/tag/1.76.0 see https://github.com/rust-lang/rust/pull/115694/ --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 205cf48..065b165 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use log::{error, info, warn}; -use std::collections::{hash_map::DefaultHasher, hash_map::RandomState, HashMap}; -use std::hash::{BuildHasher, Hash, Hasher}; +use std::collections::HashMap; +use std::hash::{BuildHasher, DefaultHasher, Hash, Hasher, RandomState}; use teloxide::{ dispatching::dialogue::{serializer::Json, ErasedStorage, SqliteStorage, Storage}, prelude::*,