From 8cb0f96ae542d40e0addd9c87b89bbff9ecdece5 Mon Sep 17 00:00:00 2001 From: Moritz Moeller Date: Tue, 23 Apr 2024 19:05:53 +0200 Subject: [PATCH] Changed iterator return type for database's iter() method. --- src/metadata/database.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metadata/database.rs b/src/metadata/database.rs index 0e87420..4195174 100644 --- a/src/metadata/database.rs +++ b/src/metadata/database.rs @@ -261,7 +261,7 @@ impl Database { } /// Iterator over all `Metadata` entries in this database. - pub fn iter(&self) -> impl Iterator> { - self.by_id.values() + pub fn iter(&self) -> impl Iterator { + self.by_id.values().map(AsRef::as_ref) } }