From a33352a199a848aacb5c39a5267b091c4e9d943e Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 30 Dec 2024 12:07:51 -0600 Subject: [PATCH] fix(dictgen)!: Remove `fn iter` --- crates/dictgen/src/map.rs | 5 ----- crates/dictgen/src/table.rs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/crates/dictgen/src/map.rs b/crates/dictgen/src/map.rs index 3d7e5f7..8cda1e7 100644 --- a/crates/dictgen/src/map.rs +++ b/crates/dictgen/src/map.rs @@ -68,9 +68,4 @@ impl DictMap { None } } - - #[inline] - pub fn iter(&self) -> impl Iterator, &V)> + '_ { - self.map.entries().map(|(k, v)| (k.convert(), v)) - } } diff --git a/crates/dictgen/src/table.rs b/crates/dictgen/src/table.rs index 588d39f..0b78d98 100644 --- a/crates/dictgen/src/table.rs +++ b/crates/dictgen/src/table.rs @@ -70,9 +70,4 @@ impl DictTable { None } } - - #[inline] - pub fn iter(&self) -> impl Iterator, &'static V)> + '_ { - (0..self.keys.len()).map(move |i| (self.keys[i].convert(), &self.values[i])) - } }