Replaced Box<dyn Iterator... with impl Iterator

This commit is contained in:
ChristianVisintin
2021-01-16 10:37:53 +01:00
parent 0393c1a850
commit bf56a269e0
3 changed files with 5 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ impl BookmarksClient {
/// ### iter_bookmarks
///
/// Iterate over bookmarks keys
pub fn iter_bookmarks(&self) -> Box<dyn Iterator<Item = &String> + '_> {
pub fn iter_bookmarks(&self) -> impl Iterator<Item = &String> + '_ {
Box::new(self.hosts.bookmarks.keys())
}
@@ -156,7 +156,7 @@ impl BookmarksClient {
/// ### iter_recents
///
/// Iterate over recents keys
pub fn iter_recents(&self) -> Box<dyn Iterator<Item = &String> + '_> {
pub fn iter_recents(&self) -> impl Iterator<Item = &String> + '_ {
Box::new(self.hosts.recents.keys())
}