dev: a false positive of clippy (#487)

This commit is contained in:
Myriad-Dreamin 2024-08-04 22:24:09 +08:00 committed by GitHub
parent 05f1645ccd
commit 859fb468e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,6 +274,8 @@ impl Eq for CatKey {}
// todo: category of types
static ROUTE_MAPS: Lazy<HashMap<CatKey, String>> = Lazy::new(|| {
// todo: this is a false positive for clippy on LazyHash
#[allow(clippy::mutable_key_type)]
let mut map = HashMap::new();
let mut scope_to_finds = vec![
(LIBRARY.global.scope(), None, None),