Clippy lints: Forbid shadowing #49
clippy
18 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 18 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 1430 in src/lib.rs
github-actions / clippy
`c` shadows a previous, unrelated binding
error: `c` shadows a previous, unrelated binding
--> src/lib.rs:1430:13
|
1430 | let c = a.clone();
| ^
|
note: previous binding is here
--> src/lib.rs:1423:13
|
1423 | let c = a.clone();
| ^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1429 in src/lib.rs
github-actions / clippy
`mut b` shadows a previous, unrelated binding
error: `mut b` shadows a previous, unrelated binding
--> src/lib.rs:1429:17
|
1429 | let mut b = BitSet::from_bytes(&[0b01101010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1422:13
|
1422 | let b = BitSet::new();
| ^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1428 in src/lib.rs
github-actions / clippy
`mut a` shadows a previous, unrelated binding
error: `mut a` shadows a previous, unrelated binding
--> src/lib.rs:1428:17
|
1428 | let mut a = BitSet::from_bytes(&[0b11100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1421:13
|
1421 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1422 in src/lib.rs
github-actions / clippy
`b` shadows a previous, unrelated binding
error: `b` shadows a previous, unrelated binding
--> src/lib.rs:1422:13
|
1422 | let b = BitSet::new();
| ^
|
note: previous binding is here
--> src/lib.rs:1414:13
|
1414 | let mut b = BitSet::new();
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1421 in src/lib.rs
github-actions / clippy
`mut a` shadows a previous, unrelated binding
error: `mut a` shadows a previous, unrelated binding
--> src/lib.rs:1421:17
|
1421 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1411:13
|
1411 | let mut a = BitSet::new();
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1400 in src/lib.rs
github-actions / clippy
`mut b` shadows a previous, unrelated binding
error: `mut b` shadows a previous, unrelated binding
--> src/lib.rs:1400:17
|
1400 | let mut b = BitSet::from_bytes(&[0b01100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1394:13
|
1394 | let b = BitSet::from_bytes(&[0b11111111]);
| ^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1399 in src/lib.rs
github-actions / clippy
`mut a` shadows a previous, unrelated binding
error: `mut a` shadows a previous, unrelated binding
--> src/lib.rs:1399:17
|
1399 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1393:13
|
1393 | let mut a = BitSet::new();
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1394 in src/lib.rs
github-actions / clippy
`b` shadows a previous, unrelated binding
error: `b` shadows a previous, unrelated binding
--> src/lib.rs:1394:13
|
1394 | let b = BitSet::from_bytes(&[0b11111111]);
| ^
|
note: previous binding is here
--> src/lib.rs:1388:13
|
1388 | let b = BitSet::from_bytes(&[0b10100010]);
| ^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1393 in src/lib.rs
github-actions / clippy
`mut a` shadows a previous, unrelated binding
error: `mut a` shadows a previous, unrelated binding
--> src/lib.rs:1393:17
|
1393 | let mut a = BitSet::new();
| ^
|
note: previous binding is here
--> src/lib.rs:1387:13
|
1387 | let mut a = BitSet::from_bytes(&[0b00000000]);
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1377 in src/lib.rs
github-actions / clippy
`c` shadows a previous, unrelated binding
error: `c` shadows a previous, unrelated binding
--> src/lib.rs:1377:13
|
1377 | let c = a.clone();
| ^
|
note: previous binding is here
--> src/lib.rs:1368:13
|
1368 | let c = a.clone();
| ^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1376 in src/lib.rs
github-actions / clippy
`mut b` shadows a previous, unrelated binding
error: `mut b` shadows a previous, unrelated binding
--> src/lib.rs:1376:17
|
1376 | let mut b = BitSet::from_bytes(&[0b01100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1367:13
|
1367 | let mut b = BitSet::new();
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1375 in src/lib.rs
github-actions / clippy
`mut a` shadows a previous, unrelated binding
error: `mut a` shadows a previous, unrelated binding
--> src/lib.rs:1375:17
|
1375 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1366:13
|
1366 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1368 in src/lib.rs
github-actions / clippy
`c` shadows a previous, unrelated binding
error: `c` shadows a previous, unrelated binding
--> src/lib.rs:1368:13
|
1368 | let c = a.clone();
| ^
|
note: previous binding is here
--> src/lib.rs:1359:13
|
1359 | let c = a.clone();
| ^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1367 in src/lib.rs
github-actions / clippy
`mut b` shadows a previous, unrelated binding
error: `mut b` shadows a previous, unrelated binding
--> src/lib.rs:1367:17
|
1367 | let mut b = BitSet::new();
| ^
|
note: previous binding is here
--> src/lib.rs:1358:13
|
1358 | let mut b = BitSet::from_bytes(&[0b00000000]);
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1366 in src/lib.rs
github-actions / clippy
`mut a` shadows a previous, unrelated binding
error: `mut a` shadows a previous, unrelated binding
--> src/lib.rs:1366:17
|
1366 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1357:13
|
1357 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1346 in src/lib.rs
github-actions / clippy
`mut b` shadows a previous, unrelated binding
error: `mut b` shadows a previous, unrelated binding
--> src/lib.rs:1346:17
|
1346 | let mut b = BitSet::from_bytes(&[0b01100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1338:13
|
1338 | let mut b = BitSet::new();
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1345 in src/lib.rs
github-actions / clippy
`mut a` shadows a previous, unrelated binding
error: `mut a` shadows a previous, unrelated binding
--> src/lib.rs:1345:17
|
1345 | let mut a = BitSet::from_bytes(&[0b10100010]);
| ^
|
note: previous binding is here
--> src/lib.rs:1336:13
|
1336 | let mut a = BitSet::new();
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
Check failure on line 1150 in src/lib.rs
github-actions / clippy
`idxs` shadows a previous, unrelated binding
error: `idxs` shadows a previous, unrelated binding
--> src/lib.rs:1150:13
|
1150 | let idxs: Vec<_> = long.iter().collect();
| ^^^^
|
note: previous binding is here
--> src/lib.rs:1143:13
|
1143 | let idxs: Vec<_> = bit_vec.iter().collect();
| ^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
note: the lint level is defined here
--> src/lib.rs:54:11
|
54 | #![forbid(clippy::shadow_unrelated)]
| ^^^^^^^^^^^^^^^^^^^^^^^^