(cargo-release) version 0.2.5 #50
GitHub Actions / clippy
failed
Mar 5, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 381 in src/lib.rs
github-actions / clippy
`iter_mut` method without an `IntoIterator` impl for `&mut SizedHashMap<K, V, S, VEC_LIMIT_UPPER>`
error: `iter_mut` method without an `IntoIterator` impl for `&mut SizedHashMap<K, V, S, VEC_LIMIT_UPPER>`
--> src/lib.rs:376:5
|
376 | / pub fn iter_mut(&mut self) -> IterMut<'_, K, V> {
377 | | match &mut self.0 {
378 | | HashMapInt::Map(m) => IterMutInt::Map(m.iter_mut()).into(),
379 | | HashMapInt::Vec(m) => IterMutInt::Vec(m.iter_mut()).into(),
380 | | }
381 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_without_into_iter
note: the lint level is defined here
--> src/lib.rs:28:1
|
28 | clippy::pedantic
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::iter_without_into_iter)]` implied by `#[deny(clippy::pedantic)]`
help: consider implementing `IntoIterator` for `&mut SizedHashMap<K, V, S, VEC_LIMIT_UPPER>`
|
161 +
162 + impl IntoIterator for &mut SizedHashMap<K, V, S, VEC_LIMIT_UPPER> {
163 + type IntoIter = iter::IterMut<'_, K, V>;
164 + type Item = (&K, &mut V);
165 + fn into_iter(self) -> Self::IntoIter {
166 + self.iter()
167 + }
168 + }
|
Loading