Skip to content

Commit

Permalink
Changed iterator return type for database's iter() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualritz committed Apr 23, 2024
1 parent 4c27119 commit 8cb0f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metadata/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl Database {
}

/// Iterator over all `Metadata` entries in this database.
pub fn iter(&self) -> impl Iterator<Item = &Arc<Metadata>> {
self.by_id.values()
pub fn iter(&self) -> impl Iterator<Item = &Metadata> {
self.by_id.values().map(AsRef::as_ref)
}
}

0 comments on commit 8cb0f96

Please sign in to comment.