docs: fix OrdMap get_prev
and get_next
docs (#88)
#269
clippy
106 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 106 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0 (9fc6b4312 2025-01-07)
- cargo 1.84.0 (66221abde 2024-11-19)
- clippy 0.1.84 (9fc6b43126 2025-01-07)
Annotations
Check warning on line 1011 in src/nodes/btree.rs
github-actions / clippy
unreachable `pub` item
warning: unreachable `pub` item
--> src/nodes/btree.rs:1011:1
|
1011 | pub struct Iter<'a, A> {
| ---^^^^^^^^^^^^^^^^^^^
| |
| help: consider restricting its visibility: `pub(crate)`
|
= help: or consider exporting it for use by other crates
note: the lint level is defined here
--> src/lib.rs:335:9
|
335 | #![warn(unreachable_pub, missing_docs)]
| ^^^^^^^^^^^^^^^
Check warning on line 2372 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2372:6
|
2372 | impl<'a, A: Clone> FusedIterator for ChunksMut<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2372 - impl<'a, A: Clone> FusedIterator for ChunksMut<'a, A> {}
2372 + impl<A: Clone> FusedIterator for ChunksMut<'_, A> {}
|
Check warning on line 2315 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2315:6
|
2315 | impl<'a, A> FusedIterator for Chunks<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2315 - impl<'a, A> FusedIterator for Chunks<'a, A> {}
2315 + impl<A> FusedIterator for Chunks<'_, A> {}
|
Check warning on line 2219 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2219:6
|
2219 | impl<'a, A: Clone> FusedIterator for IterMut<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2219 - impl<'a, A: Clone> FusedIterator for IterMut<'a, A> {}
2219 + impl<A: Clone> FusedIterator for IterMut<'_, A> {}
|
Check warning on line 2217 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2217:6
|
2217 | impl<'a, A: Clone> ExactSizeIterator for IterMut<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2217 - impl<'a, A: Clone> ExactSizeIterator for IterMut<'a, A> {}
2217 + impl<A: Clone> ExactSizeIterator for IterMut<'_, A> {}
|
Check warning on line 2140 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2140:6
|
2140 | impl<'a, A> FusedIterator for Iter<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2140 - impl<'a, A> FusedIterator for Iter<'a, A> {}
2140 + impl<A> FusedIterator for Iter<'_, A> {}
|
Check warning on line 2138 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2138:6
|
2138 | impl<'a, A> ExactSizeIterator for Iter<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2138 - impl<'a, A> ExactSizeIterator for Iter<'a, A> {}
2138 + impl<A> ExactSizeIterator for Iter<'_, A> {}
|
Check warning on line 2057 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2057:6
|
2057 | impl<'a, A: Clone> From<&'a Vec<A>> for Vector<A> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2057 - impl<'a, A: Clone> From<&'a Vec<A>> for Vector<A> {
2057 + impl<A: Clone> From<&Vec<A>> for Vector<A> {
|
Check warning on line 2040 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:2040:6
|
2040 | impl<'a, A: Clone> From<&'a [A]> for Vector<A> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2040 - impl<'a, A: Clone> From<&'a [A]> for Vector<A> {
2040 + impl<A: Clone> From<&[A]> for Vector<A> {
|
Check warning on line 2021 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'a
warning: the following explicit lifetimes could be elided: 's, 'a
--> src/vector/mod.rs:2021:6
|
2021 | impl<'s, 'a, A, OA> From<&'s Vector<&'a A>> for Vector<OA>
| ^^ ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2021 - impl<'s, 'a, A, OA> From<&'s Vector<&'a A>> for Vector<OA>
2021 + impl<A, OA> From<&Vector<&A>> for Vector<OA>
|
Check warning on line 1922 in src/vector/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/vector/mod.rs:1922:6
|
1922 | impl<'a, A: Clone> Add for &'a Vector<A> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
1922 - impl<'a, A: Clone> Add for &'a Vector<A> {
1922 + impl<A: Clone> Add for &Vector<A> {
|
Check warning on line 1023 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:1023:6
|
1023 | impl<'a, A, S> From<&'a OrdSet<A>> for HashSet<A, S>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
1023 - impl<'a, A, S> From<&'a OrdSet<A>> for HashSet<A, S>
1023 + impl<A, S> From<&OrdSet<A>> for HashSet<A, S>
|
Check warning on line 1003 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:1003:6
|
1003 | impl<'a, A, S> From<&'a BTreeSet<A>> for HashSet<A, S>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
1003 - impl<'a, A, S> From<&'a BTreeSet<A>> for HashSet<A, S>
1003 + impl<A, S> From<&BTreeSet<A>> for HashSet<A, S>
|
Check warning on line 993 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:993:6
|
993 | impl<'a, A, S> From<&'a collections::HashSet<A>> for HashSet<A, S>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
993 - impl<'a, A, S> From<&'a collections::HashSet<A>> for HashSet<A, S>
993 + impl<A, S> From<&collections::HashSet<A>> for HashSet<A, S>
|
Check warning on line 973 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:973:6
|
973 | impl<'a, A, S> From<&'a Vector<A>> for HashSet<A, S>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
973 - impl<'a, A, S> From<&'a Vector<A>> for HashSet<A, S>
973 + impl<A, S> From<&Vector<A>> for HashSet<A, S>
|
Check warning on line 953 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:953:6
|
953 | impl<'a, A, S> From<&'a Vec<A>> for HashSet<A, S>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
953 - impl<'a, A, S> From<&'a Vec<A>> for HashSet<A, S>
953 + impl<A, S> From<&Vec<A>> for HashSet<A, S>
|
Check warning on line 911 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'a
warning: the following explicit lifetimes could be elided: 's, 'a
--> src/hash/set.rs:911:6
|
911 | impl<'s, 'a, A, OA, SA, SB> From<&'s HashSet<&'a A, SA>> for HashSet<OA, SB>
| ^^ ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
911 - impl<'s, 'a, A, OA, SA, SB> From<&'s HashSet<&'a A, SA>> for HashSet<OA, SB>
911 + impl<A, OA, SA, SB> From<&HashSet<&A, SA>> for HashSet<OA, SB>
|
Check warning on line 833 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:833:6
|
833 | impl<'a, A> FusedIterator for Iter<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
833 - impl<'a, A> FusedIterator for Iter<'a, A> {}
833 + impl<A> FusedIterator for Iter<'_, A> {}
|
Check warning on line 831 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:831:6
|
831 | impl<'a, A> ExactSizeIterator for Iter<'a, A> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
831 - impl<'a, A> ExactSizeIterator for Iter<'a, A> {}
831 + impl<A> ExactSizeIterator for Iter<'_, A> {}
|
Check warning on line 808 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:808:6
|
808 | impl<'a, A> Clone for Iter<'a, A> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
808 - impl<'a, A> Clone for Iter<'a, A> {
808 + impl<A> Clone for Iter<'_, A> {
|
Check warning on line 727 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:727:6
|
727 | impl<'a, A, S> Mul for &'a HashSet<A, S>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
727 - impl<'a, A, S> Mul for &'a HashSet<A, S>
727 + impl<A, S> Mul for &HashSet<A, S>
|
Check warning on line 715 in src/hash/set.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/set.rs:715:6
|
715 | impl<'a, A, S> Add for &'a HashSet<A, S>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
715 - impl<'a, A, S> Add for &'a HashSet<A, S>
715 + impl<A, S> Add for &HashSet<A, S>
|
Check warning on line 1974 in src/hash/map.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'm, 'k, 'v
warning: the following explicit lifetimes could be elided: 'm, 'k, 'v
--> src/hash/map.rs:1974:6
|
1974 | impl<'m, 'k, 'v, K, V, OK, OV, SA, SB> From<&'m HashMap<&'k K, &'v V, SA>> for HashMap<OK, OV, SB>
| ^^ ^^ ^^ ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
1974 - impl<'m, 'k, 'v, K, V, OK, OV, SA, SB> From<&'m HashMap<&'k K, &'v V, SA>> for HashMap<OK, OV, SB>
1974 + impl<K, V, OK, OV, SA, SB> From<&HashMap<&K, &V, SA>> for HashMap<OK, OV, SB>
|
Check warning on line 1918 in src/hash/map.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/map.rs:1918:6
|
1918 | impl<'a, K, V> FusedIterator for Values<'a, K, V> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
1918 - impl<'a, K, V> FusedIterator for Values<'a, K, V> {}
1918 + impl<K, V> FusedIterator for Values<'_, K, V> {}
|
Check warning on line 1916 in src/hash/map.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/hash/map.rs:1916:6
|
1916 | impl<'a, K, V> ExactSizeIterator for Values<'a, K, V> {}
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
1916 - impl<'a, K, V> ExactSizeIterator for Values<'a, K, V> {}
1916 + impl<K, V> ExactSizeIterator for Values<'_, K, V> {}
|