Skip to content

Commit

Permalink
clippy: whitelist iter_kv lint since it is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Nov 3, 2023
1 parent c421273 commit 89dd79e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
#![deny(dead_code)]
#![deny(unused_imports)]
#![deny(missing_docs)]
// Clippy lints that we have disabled
#![allow(clippy::iter_kv_map)] // https://github.com/rust-lang/rust-clippy/issues/11752

#[cfg(target_pointer_width = "16")]
compile_error!(
Expand Down
2 changes: 1 addition & 1 deletion src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ pub trait IntoAssets {
}

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

impl IntoAssets for DescriptorPublicKey {
Expand Down

0 comments on commit 89dd79e

Please sign in to comment.