Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Sep 12, 2024
1 parent edc1dd9 commit afb76c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frb_codegen/src/library/utils/dart_repository/dart_repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use serde::de::DeserializeOwned;
use std::collections::HashMap;
use std::convert::TryFrom;
use std::fmt::Display;
use std::hash::Hash;
use std::path::{Path, PathBuf};

/// represents a dart / flutter repository
Expand Down Expand Up @@ -232,7 +233,7 @@ fn read_file_and_parse_yaml<T: DeserializeOwned>(at: &Path, filename: &str) -> a
Ok(file)
}

fn option_hash_map_contains<K, V>(map: &Option<HashMap<K, V>>, key: &K) -> bool {
fn option_hash_map_contains<K: Hash + Eq, V: Eq>(map: &Option<HashMap<K, V>>, key: &K) -> bool {
if let Some(map) = map.as_ref() {
map.contains_key(key)
} else {
Expand Down

0 comments on commit afb76c3

Please sign in to comment.