Skip to content

Commit

Permalink
Disable buggy iter_not_returning_iterator lint
Browse files Browse the repository at this point in the history
rust-lang/rust-clippy#8285

    error: this method is named `iter` but its return type does not implement `Iterator`
       --> src/map.rs:238:5
        |
    238 |     pub fn iter(&self) -> Iter {
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = note: `-D clippy::iter-not-returning-iterator` implied by `-D clippy::pedantic`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator

    error: this method is named `iter_mut` but its return type does not implement `Iterator`
       --> src/map.rs:246:5
        |
    246 |     pub fn iter_mut(&mut self) -> IterMut {
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
  • Loading branch information
dtolnay committed Jan 15, 2022
1 parent aebe84c commit 6691977
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -321,6 +321,8 @@
)]
// Ignored clippy_pedantic lints
#![allow(
// buggy
clippy::iter_not_returning_iterator, // https://github.com/rust-lang/rust-clippy/issues/8285
// Deserializer::from_str, into_iter
clippy::should_implement_trait,
// integer and float ser/de requires these sorts of casts
Expand Down

0 comments on commit 6691977

Please sign in to comment.