Skip to content

Commit 1ecb6ec

Browse files
committed
one clippy lint having a rough one today
bunch of new bugs in https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+let_underscore_untyped our use seems perfectly fine, what clippy wanted was nonsense: ``` error: non-binding `let` without a type annotation --> kube-runtime/src/reflector/store.rs:87:12 | 87 | pub struct Store<K: 'static + Resource> | ^^^^^ | = help: consider adding a type annotation or removing the `let` keyword = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped error: non-binding `let` without a type annotation --> kube-runtime/src/watcher.rs:123:5 | 123 | InitListed { resource_version: String }, | ^^^^^^^^^^ | = help: consider adding a type annotation or removing the `let` keyword = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped ``` Signed-off-by: clux <sszynrae@gmail.com>
1 parent c228fb6 commit 1ecb6ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kube-runtime/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#![allow(clippy::type_repetition_in_bounds)]
1717
// Triggered by Tokio macros
1818
#![allow(clippy::semicolon_if_nothing_returned)]
19+
// Triggered by nightly clippy on idiomatic code
20+
#![allow(clippy::let_underscore_untyped)]
1921

2022
pub mod controller;
2123
pub mod events;

0 commit comments

Comments
 (0)