Skip to content

Commit 6480ccd

Browse files
authored
Merge pull request #1753 from kube-rs/clippy-and-deny-pki
Fix a clippy lint and update deny allow on optional webpki-roots
2 parents 13bdb4d + d1201fc commit 6480ccd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

deny.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ allow = [
3636
exceptions = [
3737
# Pulled in via hyper-rustls when using the webpki-roots feature,
3838
# which is off by default.
39-
{ allow = ["MPL-2.0"], name = "webpki-roots" },
39+
{ allow = ["CDLA-Permissive-2.0"], crate = "webpki-roots" },
4040
]
4141

4242
[sources]

kube-runtime/src/reflector/store.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ where
251251
{
252252
self.store
253253
.read()
254-
.iter()
255-
.map(|(_, k)| k)
254+
.values()
256255
.find(|k| predicate(k.as_ref()))
257256
.cloned()
258257
}

0 commit comments

Comments
 (0)