Skip to content

Commit

Permalink
unnecessary generic removed
Browse files Browse the repository at this point in the history
  • Loading branch information
AhzamAkhtar committed Jan 7, 2025
1 parent 14452b0 commit 6e66a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion das_api/src/api/api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub fn not_found(asset_id: &String) -> DbErr {
DbErr::RecordNotFound(format!("Asset Proof for {} Not Found", asset_id))
}

pub fn remove_duplicates_ids<T: Eq + Clone + std::hash::Hash>(ids: Vec<T>) -> Vec<T> {
pub fn remove_duplicates_ids(ids: Vec<String>) -> Vec<String> {
let mut hash_set = HashSet::new();
ids.into_iter().filter(|id| hash_set.insert(id.clone())).collect()
}
Expand Down

0 comments on commit 6e66a84

Please sign in to comment.