Skip to content

Commit 7eccfdb

Browse files
committed
clippy: whitelist iter_kv lint since it is broken
1 parent 6de288f commit 7eccfdb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
#![deny(dead_code)]
8686
#![deny(unused_imports)]
8787
#![deny(missing_docs)]
88+
// Clippy lints that we have disabled
89+
#![allow(clippy::iter_kv_map)] // https://github.com/rust-lang/rust-clippy/issues/11752
8890

8991
#[cfg(target_pointer_width = "16")]
9092
compile_error!(

src/plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ pub trait IntoAssets {
658658
}
659659

660660
impl IntoAssets for KeyMap {
661-
fn into_assets(self) -> Assets { Assets::from_iter(self.into_keys()) }
661+
fn into_assets(self) -> Assets { Assets::from_iter(self.into_iter().map(|(k, _)| k)) }
662662
}
663663

664664
impl IntoAssets for DescriptorPublicKey {

0 commit comments

Comments
 (0)