From b0e45fceb6f57fa2bb95fc312dd4cd578e149079 Mon Sep 17 00:00:00 2001 From: Ivan Zuzak Date: Thu, 16 Jul 2026 15:28:22 +0200 Subject: [PATCH 1/2] Point to insert_unique in from_iter_unique code comment --- crates/iddqd/src/id_ord_map/imp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/iddqd/src/id_ord_map/imp.rs b/crates/iddqd/src/id_ord_map/imp.rs index 0b81b2c1..4479887a 100644 --- a/crates/iddqd/src/id_ord_map/imp.rs +++ b/crates/iddqd/src/id_ord_map/imp.rs @@ -225,7 +225,7 @@ impl IdOrdMap { ) -> Result> { let mut map = IdOrdMap::new(); for value in iter { - // It would be nice to use insert_overwrite here, but that would + // It would be nice to use insert_unique here, but that would // return a `DuplicateItem`, which can only be converted into // an owned value if T: Clone. Doing this via the Entry API means we // can return a `DuplicateItem` without requiring T to be Clone. From a6b014b412bae090ad3f8da576092aca4f23a2a8 Mon Sep 17 00:00:00 2001 From: Ivan Zuzak Date: Thu, 16 Jul 2026 19:08:36 +0200 Subject: [PATCH 2/2] Rewrap the comment to 80 chars per line --- crates/iddqd/src/id_ord_map/imp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/iddqd/src/id_ord_map/imp.rs b/crates/iddqd/src/id_ord_map/imp.rs index 4479887a..361def1f 100644 --- a/crates/iddqd/src/id_ord_map/imp.rs +++ b/crates/iddqd/src/id_ord_map/imp.rs @@ -225,9 +225,9 @@ impl IdOrdMap { ) -> Result> { let mut map = IdOrdMap::new(); for value in iter { - // It would be nice to use insert_unique here, but that would - // return a `DuplicateItem`, which can only be converted into - // an owned value if T: Clone. Doing this via the Entry API means we + // It would be nice to use insert_unique here, but that would return + // a `DuplicateItem`, which can only be converted into an + // owned value if T: Clone. Doing this via the Entry API means we // can return a `DuplicateItem` without requiring T to be Clone. match map.entry(value.key()) { Entry::Occupied(entry) => {