Add a test to confirm that #217 is fixed (#476) #614
clippy
8 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 8 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.71.1 (eb26296b5 2023-08-03)
- cargo 1.71.1 (7f1d04c00 2023-07-29)
- clippy 0.1.71 (eb26296 2023-08-03)
Annotations
Check warning on line 330 in src/parse.rs
github-actions / clippy
casting to the same type is unnecessary (`u64` -> `u64`)
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/parse.rs:330:44
|
330 | ... Ok(AnyNum::U64(x as u64))
| ^^^^^^^^ help: try: `x`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
Check warning on line 302 in src/parse.rs
github-actions / clippy
casting to the same type is unnecessary (`i64` -> `i64`)
warning: casting to the same type is unnecessary (`i64` -> `i64`)
--> src/parse.rs:302:44
|
302 | ... Ok(AnyNum::I64(x as i64))
| ^^^^^^^^ help: try: `x`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
Check warning on line 421 in src/ser/mod.rs
github-actions / clippy
dereferencing a tuple pattern where every element takes a reference
warning: dereferencing a tuple pattern where every element takes a reference
--> src/ser/mod.rs:421:28
|
421 | .map_or(true, |&(ref config, _)| config.escape_strings)
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
help: try removing the `&` and `ref` parts
|
421 - .map_or(true, |&(ref config, _)| config.escape_strings)
421 + .map_or(true, |(config, _)| config.escape_strings)
|
Check warning on line 415 in src/ser/mod.rs
github-actions / clippy
dereferencing a tuple pattern where every element takes a reference
warning: dereferencing a tuple pattern where every element takes a reference
--> src/ser/mod.rs:415:47
|
415 | .map_or(Extensions::empty(), |&(ref config, _)| config.extensions)
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
help: try removing the `&` and `ref` parts
|
415 - .map_or(Extensions::empty(), |&(ref config, _)| config.extensions)
415 + .map_or(Extensions::empty(), |(config, _)| config.extensions)
|
Check warning on line 407 in src/ser/mod.rs
github-actions / clippy
dereferencing a tuple pattern where every element takes a reference
warning: dereferencing a tuple pattern where every element takes a reference
--> src/ser/mod.rs:407:29
|
407 | .map_or(false, |&(ref config, _)| config.compact_maps)
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
help: try removing the `&` and `ref` parts
|
407 - .map_or(false, |&(ref config, _)| config.compact_maps)
407 + .map_or(false, |(config, _)| config.compact_maps)
|
Check warning on line 401 in src/ser/mod.rs
github-actions / clippy
dereferencing a tuple pattern where every element takes a reference
warning: dereferencing a tuple pattern where every element takes a reference
--> src/ser/mod.rs:401:29
|
401 | .map_or(false, |&(ref config, _)| config.compact_structs)
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
help: try removing the `&` and `ref` parts
|
401 - .map_or(false, |&(ref config, _)| config.compact_structs)
401 + .map_or(false, |(config, _)| config.compact_structs)
|
Check warning on line 395 in src/ser/mod.rs
github-actions / clippy
dereferencing a tuple pattern where every element takes a reference
warning: dereferencing a tuple pattern where every element takes a reference
--> src/ser/mod.rs:395:29
|
395 | .map_or(false, |&(ref config, _)| config.compact_arrays)
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
help: try removing the `&` and `ref` parts
|
395 - .map_or(false, |&(ref config, _)| config.compact_arrays)
395 + .map_or(false, |(config, _)| config.compact_arrays)
|
Check warning on line 389 in src/ser/mod.rs
github-actions / clippy
dereferencing a tuple pattern where every element takes a reference
warning: dereferencing a tuple pattern where every element takes a reference
--> src/ser/mod.rs:389:29
|
389 | .map_or(false, |&(ref config, _)| config.separate_tuple_members)
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference
= note: `#[warn(clippy::needless_borrowed_reference)]` on by default
help: try removing the `&` and `ref` parts
|
389 - .map_or(false, |&(ref config, _)| config.separate_tuple_members)
389 + .map_or(false, |(config, _)| config.separate_tuple_members)
|