cI: remove rust cache #689
ci.yml
on: pull_request
lint
1m 55s
typecheck
1m 29s
coverage
3m 20s
docs
1m 45s
Rustfmt
9s
Matrix: Rust unit tests
Matrix: test
Annotations
5 errors and 402 warnings
test (macos-latest, 3.8)
Process completed with exit code 1.
|
test (windows-latest, 3.11)
Process completed with exit code 1.
|
test (windows-latest, 3.10)
Process completed with exit code 1.
|
test (windows-latest, 3.8)
Process completed with exit code 1.
|
test (windows-latest, 3.12-dev)
Process completed with exit code 1.
|
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
`to_string` applied to a type that implements `Display` in `print!` args:
libcst/src/bin.rs#L29
warning: `to_string` applied to a type that implements `Display` in `print!` args
--> libcst/src/bin.rs:29:35
|
29 | print!("{}", state.to_string());
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
= note: `#[warn(clippy::to_string_in_format_args)]` on by default
|
use of `unwrap_or_else` to construct default value:
libcst/src/bin.rs#L22
warning: use of `unwrap_or_else` to construct default value
--> libcst/src/bin.rs:22:48
|
22 | let first_arg = env::args().nth(1).unwrap_or_else(|| "".to_string());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
= note: `#[warn(clippy::unwrap_or_default)]` on by default
|
manual implementation of `Option::map`:
libcst/src/parser/grammar.rs#L3431
warning: manual implementation of `Option::map`
--> libcst/src/parser/grammar.rs:3431:24
|
3431 | let lbracket_tok = if let Some(tp) = &type_parameters {
| ________________________^
3432 | | Some(tp.lbracket.tok)
3433 | | } else {
3434 | | None
3435 | | };
| |_____^ help: try: `type_parameters.as_ref().map(|tp| tp.lbracket.tok)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
= note: `#[warn(clippy::manual_map)]` on by default
|
explicit call to `.into_iter()` in function argument accepting `IntoIterator`:
libcst/src/parser/grammar.rs#L1888
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> libcst/src/parser/grammar.rs:1888:25
|
1888 | a.into_iter().chain(b.into_iter()).collect()
| ^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `b`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/iter/traits/iterator.rs:523:12
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
this lifetime isn't used in the impl:
libcst/src/parser/errors.rs#L81
warning: this lifetime isn't used in the impl
--> libcst/src/parser/errors.rs:81:10
|
81 | impl<'a> PyErrArguments for Details {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
= note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
|
deref which would be done by auto-deref:
libcst/src/nodes/module.rs#L63
warning: deref which would be done by auto-deref
--> libcst/src/nodes/module.rs:63:18
|
63 | &mut (*self.eof_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.eof_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1415
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1415:18
|
1415 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1411
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1411:18
|
1411 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1312
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1312:26
|
1312 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1308
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1308:26
|
1308 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1298
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1298:26
|
1298 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1294
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1294:26
|
1294 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1284
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1284:26
|
1284 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1280
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1280:26
|
1280 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1270
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1270:26
|
1270 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1266
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1266:26
|
1266 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1256
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1256:26
|
1256 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1252
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1252:26
|
1252 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1242
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1242:26
|
1242 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1238
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1238:26
|
1238 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1228
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1228:26
|
1228 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1224
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1224:26
|
1224 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1214
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1214:26
|
1214 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1210
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1210:26
|
1210 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1200
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1200:26
|
1200 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1196
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1196:26
|
1196 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1186
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1186:26
|
1186 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1182
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1182:26
|
1182 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1172
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1172:26
|
1172 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1168
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1168:26
|
1168 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1158
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1158:26
|
1158 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1154
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1154:26
|
1154 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1144
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1144:26
|
1144 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1140
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1140:26
|
1140 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
all variants have the same postfix: `Assign`:
libcst/src/nodes/op.rs#L1051
warning: all variants have the same postfix: `Assign`
--> libcst/src/nodes/op.rs:1051:1
|
1051 | #[cst_node]
| ^^^^^^^^^^^
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
= note: `#[warn(clippy::enum_variant_names)]` on by default
= note: this warning originates in the attribute macro `cst_node` (in Nightly builds, run with -Z macro-backtrace for more info)
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1034
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1034:18
|
1034 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1030
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1030:18
|
1030 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1004
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1004:26
|
1004 | &mut (*in_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^ help: try: `in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1000
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1000:26
|
1000 | &mut (*not_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^ help: try: `not_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L996
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:996:26
|
996 | &mut (*not_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^ help: try: `not_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L983
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:983:26
|
983 | &mut (*not_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^ help: try: `not_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L979
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:979:26
|
979 | &mut (*is_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^ help: try: `is_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L975
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:975:26
|
975 | &mut (*is_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^ help: try: `is_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L963
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:963:26
|
963 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L959
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:959:26
|
959 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L949
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:949:26
|
949 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L945
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:945:26
|
945 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L935
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:935:26
|
935 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L931
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:931:26
|
931 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L921
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:921:26
|
921 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L917
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:917:26
|
917 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L907
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:907:26
|
907 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L903
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:903:26
|
903 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L893
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:893:26
|
893 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L889
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:889:26
|
889 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L879
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:879:26
|
879 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L875
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:875:26
|
875 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L865
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:865:26
|
865 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L861
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:861:26
|
861 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L697
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:697:26
|
697 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L693
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:693:26
|
693 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L683
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:683:26
|
683 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L679
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:679:26
|
679 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L669
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:669:26
|
669 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L665
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:665:26
|
665 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L655
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:655:26
|
655 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L651
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:651:26
|
651 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L641
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:641:26
|
641 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L637
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:637:26
|
637 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L627
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:627:26
|
627 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L623
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:623:26
|
623 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L613
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:613:26
|
613 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L609
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:609:26
|
609 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L599
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:599:26
|
599 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L595
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:595:26
|
595 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L585
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:585:26
|
585 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L581
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:581:26
|
581 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L571
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:571:26
|
571 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L567
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:567:26
|
567 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L557
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:557:26
|
557 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L553
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:553:26
|
553 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L543
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:543:26
|
543 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L539
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:539:26
|
539 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L529
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:529:26
|
529 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L348
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:348:26
|
348 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L344
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:344:26
|
344 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L334
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:334:26
|
334 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L330
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:330:26
|
330 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L279
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:279:26
|
279 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L272
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:272:26
|
272 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L265
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:265:26
|
265 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L258
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:258:26
|
258 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L180
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:180:55
|
180 | parse_parenthesizable_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L176
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:176:55
|
176 | parse_parenthesizable_whitespace(config, &mut (*self.tok).whitespace_before.borrow_mut())
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L134
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:134:18
|
134 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L130
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:130:18
|
130 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L96
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:96:18
|
96 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L83
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:83:18
|
83 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L79
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:79:18
|
79 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L46
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:46:50
|
46 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?,
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L43
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:43:50
|
43 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_before.borrow_mut())?,
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
`filter(..).map(..)` can be simplified as `filter_map(..)`:
libcst/src/nodes/expression.rs#L2592
warning: `filter(..).map(..)` can be simplified as `filter_map(..)`
--> libcst/src/nodes/expression.rs:2592:22
|
2592 | .filter(|x| x.is_some())
| ______________________^
2593 | | .map(|x| x.as_ref().unwrap())
| |_________________________________________________^ help: try: `filter_map(|x| x.as_ref())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
|
`filter(..).map(..)` can be simplified as `filter_map(..)`:
libcst/src/nodes/expression.rs#L2547
warning: `filter(..).map(..)` can be simplified as `filter_map(..)`
--> libcst/src/nodes/expression.rs:2547:22
|
2547 | .filter(|x| x.is_some())
| ______________________^
2548 | | .map(|x| x.as_ref().unwrap())
| |_________________________________________________^ help: try: `filter_map(|x| x.as_ref())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
= note: `#[warn(clippy::manual_filter_map)]` on by default
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2382
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2382:18
|
2382 | &mut (*self.lbrace_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.lbrace_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
the following explicit lifetimes could be elided: 'a:
libcst/src/nodes/expression.rs#L2355
warning: the following explicit lifetimes could be elided: 'a
--> libcst/src/nodes/expression.rs:2355:36
|
2355 | pub(crate) fn make_fstringtext<'r, 'a>(value: &'a str) -> DeflatedFormattedStringText<'r, 'a> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2355 - pub(crate) fn make_fstringtext<'r, 'a>(value: &'a str) -> DeflatedFormattedStringText<'r, 'a> {
2355 + pub(crate) fn make_fstringtext<'r>(value: &str) -> DeflatedFormattedStringText<'r, '_> {
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2284
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2284:18
|
2284 | &mut (*self.right_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.right_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2224
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2224:18
|
2224 | &mut (*self.await_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.await_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2175
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2175:22
|
2175 | &mut (*self.yield_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.yield_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2118
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2118:18
|
2118 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2114
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2114:18
|
2114 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this expression creates a reference which is immediately dereferenced by the compiler:
libcst/src/nodes/expression.rs#L2055
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> libcst/src/nodes/expression.rs:2055:68
|
2055 | adjust_parameters_trailing_whitespace(config, &mut params, &self.colon.tok)?;
| ^^^^^^^^^^^^^^^ help: change this to: `self.colon.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2049
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2049:22
|
2049 | &mut (*self.lambda_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.lambda_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1996
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1996:18
|
1996 | &mut (*self.else_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.else_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1992
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1992:18
|
1992 | &mut (*self.else_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.else_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1987
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1987:18
|
1987 | &mut (*self.if_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1983
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1983:18
|
1983 | &mut (*self.if_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1758
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1758:18
|
1758 | &mut (*self.star_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.star_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
large size difference between variants:
libcst/src/nodes/expression.rs#L1633
warning: large size difference between variants
--> libcst/src/nodes/expression.rs:1633:1
|
1633 | / pub enum DictElement<'a> {
1634 | |/ Simple {
1635 | || key: Expression<'a>,
1636 | || value: Expression<'a>,
1637 | || comma: Option<Comma<'a>>,
... ||
1640 | || colon_tok: TokenRef<'a>,
1641 | || },
| ||_____- the largest variant contains at least 416 bytes
1642 | | Starred(StarredDictElement<'a>),
| | ------------------------------- the second-largest variant contains at least 0 bytes
1643 | | }
| |__^ the entire enum is at least 0 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
= note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
|
1637 ~ comma: Box<Option<Comma<'a>>>,
1638 | whitespace_before_colon: ParenthesizableWhitespace<'a>,
1639 ~ whitespace_after_colon: Box<ParenthesizableWhitespace<'a>>,
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1470
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1470:18
|
1470 | &mut (*self.if_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1466
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1466:18
|
1466 | &mut (*self.if_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1406
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1406:18
|
1406 | &mut (*self.in_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1402
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1402:18
|
1402 | &mut (*self.in_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1397
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1397:18
|
1397 | &mut (*self.for_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1378
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1378:18
|
1378 | &mut (*self.for_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1321
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1321:18
|
1321 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this `impl` can be derived:
libcst/src/nodes/expression.rs#L1308
warning: this `impl` can be derived
--> libcst/src/nodes/expression.rs:1308:1
|
1308 | / impl<'a> Default for RightCurlyBrace<'a> {
1309 | | fn default() -> Self {
1310 | | Self {
1311 | | whitespace_before: Default::default(),
1312 | | }
1313 | | }
1314 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= help: remove the manual implementation...
help: ...and instead derive it
|
1303 + #[derive(Default)]
1304 | pub struct RightCurlyBrace<'a> {
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1289
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1289:18
|
1289 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this `impl` can be derived:
libcst/src/nodes/expression.rs#L1276
warning: this `impl` can be derived
--> libcst/src/nodes/expression.rs:1276:1
|
1276 | / impl<'a> Default for LeftCurlyBrace<'a> {
1277 | | fn default() -> Self {
1278 | | Self {
1279 | | whitespace_after: Default::default(),
1280 | | }
1281 | | }
1282 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it
|
1271 + #[derive(Default)]
1272 | pub struct LeftCurlyBrace<'a> {
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1235
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1235:18
|
1235 | &mut (*self.colon_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1231
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1231:18
|
1231 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1161
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1161:18
|
1161 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1136
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1136:18
|
1136 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L890
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:890:18
|
890 | &mut (*self.star_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.star_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L764
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:764:26
|
764 | &mut (*self.rpar_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.rpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L756
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:756:18
|
756 | &mut (*self.lpar_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.lpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L752
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:752:18
|
752 | &mut (*self.lpar_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.lpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L441
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:441:18
|
441 | &mut (*self.rpar_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.rpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L414
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:414:18
|
414 | &mut (*self.lpar_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.lpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2403
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2403:50
|
2403 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2342
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2342:18
|
2342 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2325
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2325:50
|
2325 | parse_simple_whitespace(config, &mut (*self.with_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^ help: try: `self.with_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2319
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2319:22
|
2319 | &mut (*self.with_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.with_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2133
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2133:50
|
2133 | parse_simple_whitespace(config, &mut (*self.try_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2129
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2129:18
|
2129 | &mut (*self.try_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2073
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2073:50
|
2073 | parse_simple_whitespace(config, &mut (*self.try_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2069
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2069:18
|
2069 | &mut (*self.try_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1941
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1941:22
|
1941 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1933
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1933:18
|
1933 | &mut (*self.except_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.except_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1928
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1928:18
|
1928 | &mut (*self.except_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.except_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1878
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1878:18
|
1878 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1873
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1873:18
|
1873 | &mut (*self.finally_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.finally_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1815
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1815:18
|
1815 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1788
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1788:50
|
1788 | parse_simple_whitespace(config, &mut (*self.class_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^^ help: try: `self.class_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1777
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1777:18
|
1777 | &mut (*self.class_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.class_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1685
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1685:18
|
1685 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1681
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1681:50
|
1681 | parse_simple_whitespace(config, &mut (*self.while_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^^ help: try: `self.while_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1677
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1677:18
|
1677 | &mut (*self.while_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.while_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1619
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1619:18
|
1619 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1615
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1615:50
|
1615 | parse_simple_whitespace(config, &mut (*self.in_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1613
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1613:50
|
1613 | parse_simple_whitespace(config, &mut (*self.in_tok).whitespace_before.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1610
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1610:50
|
1610 | parse_simple_whitespace(config, &mut (*self.for_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1605
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1605:22
|
1605 | &mut (*self.for_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1505
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1505:50
|
1505 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1460
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1460:50
|
1460 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1367
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1367:22
|
1367 | &mut (*self.raise_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.raise_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1327
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1327:18
|
1327 | &mut (*self.assert_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.assert_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1270
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1270:22
|
1270 | &mut (*self.return_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.return_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1174
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1174:18
|
1174 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1170
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1170:18
|
1170 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1128
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1128:18
|
1128 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1123
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1123:18
|
1123 | &mut (*self.else_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.else_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1068
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1068:18
|
1068 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1064
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1064:50
|
1064 | parse_simple_whitespace(config, &mut (*self.if_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1060
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1060:18
|
1060 | &mut (*self.if_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L997
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:997:18
|
997 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L993
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:993:50
|
993 | parse_simple_whitespace(config, &mut (*self.at_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.at_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L989
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:989:18
|
989 | &mut (*self.at_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.at_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L937
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:937:18
|
937 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this expression creates a reference which is immediately dereferenced by the compiler:
libcst/src/nodes/statement.rs#L932
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> libcst/src/nodes/statement.rs:932:68
|
932 | adjust_parameters_trailing_whitespace(config, &mut params, &self.close_paren_tok)?;
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.close_paren_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L929
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:929:18
|
929 | &mut (*self.open_paren_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.open_paren_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L903
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:903:50
|
903 | parse_simple_whitespace(config, &mut (*self.def_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.def_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L890
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:890:22
|
890 | &mut (*self.def_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.def_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L762
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:762:18
|
762 | &mut (*self.as_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.as_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L758
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:758:18
|
758 | &mut (*self.as_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.as_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L634
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:634:22
|
634 | &mut (*self.import_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.import_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L615
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:615:18
|
615 | &mut (*self.import_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.import_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L609
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:609:50
|
609 | parse_simple_whitespace(config, &mut (*self.from_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^ help: try: `self.from_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L543
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:543:18
|
543 | &mut (*self.import_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.import_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L493
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:493:50
|
493 | parse_simple_whitespace(config, &mut (*self.equal_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^^ help: try: `self.equal_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L490
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:490:18
|
490 | &mut (*self.equal_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.equal_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L279
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:279:18
|
279 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L273
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:273:18
|
273 | &mut (*self.first_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.first_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L209
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:209:18
|
209 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L204
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:204:18
|
204 | &mut (*self.first_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.first_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L169
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:169:18
|
169 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L164
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:164:18
|
164 | &mut (*self.dedent_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.dedent_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
the following explicit lifetimes could be elided: 'a:
libcst/src/tokenizer/whitespace_parser.rs#L353
warning: the following explicit lifetimes could be elided: 'a
--> libcst/src/tokenizer/whitespace_parser.rs:353:22
|
353 | fn advance_this_line<'a>(
| ^^
354 | config: &Config<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
353 ~ fn advance_this_line(
354 ~ config: &Config<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
libcst/src/tokenizer/whitespace_parser.rs#L344
warning: the following explicit lifetimes could be elided: 'a
--> libcst/src/tokenizer/whitespace_parser.rs:344:25
|
344 | fn advance_to_next_line<'a>(config: &Config<'a>, state: &mut State) -> Result<()> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
344 - fn advance_to_next_line<'a>(config: &Config<'a>, state: &mut State) -> Result<()> {
344 + fn advance_to_next_line(config: &Config<'_>, state: &mut State) -> Result<()> {
|
|
binary comparison to literal `Option::None`:
libcst/src/tokenizer/core/mod.rs#L409
warning: binary comparison to literal `Option::None`
--> libcst/src/tokenizer/core/mod.rs:409:28
|
409 | if self.text_pos.peek() == None {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `self.text_pos.peek().is_none()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
= note: `#[warn(clippy::partialeq_to_none)]` on by default
|
Rust unit tests (ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Rust unit tests (windows-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
`to_string` applied to a type that implements `Display` in `print!` args:
libcst/src/bin.rs#L29
warning: `to_string` applied to a type that implements `Display` in `print!` args
--> libcst/src/bin.rs:29:35
|
29 | print!("{}", state.to_string());
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
= note: `#[warn(clippy::to_string_in_format_args)]` on by default
|
use of `unwrap_or_else` to construct default value:
libcst/src/bin.rs#L22
warning: use of `unwrap_or_else` to construct default value
--> libcst/src/bin.rs:22:48
|
22 | let first_arg = env::args().nth(1).unwrap_or_else(|| "".to_string());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
= note: `#[warn(clippy::unwrap_or_default)]` on by default
|
manual implementation of `Option::map`:
libcst/src/parser/grammar.rs#L3431
warning: manual implementation of `Option::map`
--> libcst/src/parser/grammar.rs:3431:24
|
3431 | let lbracket_tok = if let Some(tp) = &type_parameters {
| ________________________^
3432 | | Some(tp.lbracket.tok)
3433 | | } else {
3434 | | None
3435 | | };
| |_____^ help: try: `type_parameters.as_ref().map(|tp| tp.lbracket.tok)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map
= note: `#[warn(clippy::manual_map)]` on by default
|
explicit call to `.into_iter()` in function argument accepting `IntoIterator`:
libcst/src/parser/grammar.rs#L1888
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> libcst/src/parser/grammar.rs:1888:25
|
1888 | a.into_iter().chain(b.into_iter()).collect()
| ^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `b`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/iter/traits/iterator.rs:523:12
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
this lifetime isn't used in the impl:
libcst/src/parser/errors.rs#L81
warning: this lifetime isn't used in the impl
--> libcst/src/parser/errors.rs:81:10
|
81 | impl<'a> PyErrArguments for Details {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
= note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
|
deref which would be done by auto-deref:
libcst/src/nodes/module.rs#L63
warning: deref which would be done by auto-deref
--> libcst/src/nodes/module.rs:63:18
|
63 | &mut (*self.eof_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.eof_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1415
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1415:18
|
1415 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1411
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1411:18
|
1411 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1312
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1312:26
|
1312 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1308
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1308:26
|
1308 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1298
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1298:26
|
1298 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1294
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1294:26
|
1294 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1284
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1284:26
|
1284 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1280
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1280:26
|
1280 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1270
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1270:26
|
1270 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1266
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1266:26
|
1266 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1256
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1256:26
|
1256 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1252
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1252:26
|
1252 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1242
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1242:26
|
1242 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1238
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1238:26
|
1238 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1228
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1228:26
|
1228 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1224
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1224:26
|
1224 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1214
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1214:26
|
1214 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1210
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1210:26
|
1210 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1200
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1200:26
|
1200 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1196
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1196:26
|
1196 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1186
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1186:26
|
1186 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1182
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1182:26
|
1182 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1168
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1168:26
|
1168 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1158
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1158:26
|
1158 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1154
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1154:26
|
1154 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1144
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1144:26
|
1144 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1140
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1140:26
|
1140 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
all variants have the same postfix: `Assign`:
libcst/src/nodes/op.rs#L1051
warning: all variants have the same postfix: `Assign`
--> libcst/src/nodes/op.rs:1051:1
|
1051 | #[cst_node]
| ^^^^^^^^^^^
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
= note: `#[warn(clippy::enum_variant_names)]` on by default
= note: this warning originates in the attribute macro `cst_node` (in Nightly builds, run with -Z macro-backtrace for more info)
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1034
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1034:18
|
1034 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1030
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1030:18
|
1030 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1004
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1004:26
|
1004 | &mut (*in_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^ help: try: `in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L1000
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:1000:26
|
1000 | &mut (*not_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^ help: try: `not_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L996
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:996:26
|
996 | &mut (*not_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^ help: try: `not_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L983
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:983:26
|
983 | &mut (*not_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^ help: try: `not_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L979
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:979:26
|
979 | &mut (*is_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^ help: try: `is_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L975
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:975:26
|
975 | &mut (*is_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^ help: try: `is_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L963
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:963:26
|
963 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L959
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:959:26
|
959 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L949
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:949:26
|
949 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L945
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:945:26
|
945 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L935
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:935:26
|
935 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L931
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:931:26
|
931 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L921
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:921:26
|
921 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L917
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:917:26
|
917 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L907
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:907:26
|
907 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L903
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:903:26
|
903 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L893
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:893:26
|
893 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L889
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:889:26
|
889 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L879
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:879:26
|
879 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L875
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:875:26
|
875 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L865
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:865:26
|
865 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L861
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:861:26
|
861 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L697
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:697:26
|
697 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L693
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:693:26
|
693 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L683
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:683:26
|
683 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L679
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:679:26
|
679 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L669
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:669:26
|
669 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L665
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:665:26
|
665 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L655
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:655:26
|
655 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L651
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:651:26
|
651 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L641
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:641:26
|
641 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L637
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:637:26
|
637 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L627
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:627:26
|
627 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L623
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:623:26
|
623 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L613
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:613:26
|
613 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L609
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:609:26
|
609 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L599
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:599:26
|
599 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L595
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:595:26
|
595 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L585
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:585:26
|
585 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L581
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:581:26
|
581 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L571
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:571:26
|
571 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L567
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:567:26
|
567 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L557
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:557:26
|
557 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L553
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:553:26
|
553 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L543
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:543:26
|
543 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L539
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:539:26
|
539 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L529
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:529:26
|
529 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L525
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:525:26
|
525 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L348
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:348:26
|
348 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L344
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:344:26
|
344 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L334
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:334:26
|
334 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L330
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:330:26
|
330 | &mut (*tok).whitespace_before.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L279
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:279:26
|
279 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L272
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:272:26
|
272 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L265
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:265:26
|
265 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L258
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:258:26
|
258 | &mut (*tok).whitespace_after.borrow_mut(),
| ^^^^^^ help: try: `tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L180
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:180:55
|
180 | parse_parenthesizable_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L176
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:176:55
|
176 | parse_parenthesizable_whitespace(config, &mut (*self.tok).whitespace_before.borrow_mut())
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L134
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:134:18
|
134 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L130
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:130:18
|
130 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L96
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:96:18
|
96 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L83
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:83:18
|
83 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L79
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:79:18
|
79 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L46
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:46:50
|
46 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?,
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/op.rs#L43
warning: deref which would be done by auto-deref
--> libcst/src/nodes/op.rs:43:50
|
43 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_before.borrow_mut())?,
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
`filter(..).map(..)` can be simplified as `filter_map(..)`:
libcst/src/nodes/expression.rs#L2592
warning: `filter(..).map(..)` can be simplified as `filter_map(..)`
--> libcst/src/nodes/expression.rs:2592:22
|
2592 | .filter(|x| x.is_some())
| ______________________^
2593 | | .map(|x| x.as_ref().unwrap())
| |_________________________________________________^ help: try: `filter_map(|x| x.as_ref())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
|
`filter(..).map(..)` can be simplified as `filter_map(..)`:
libcst/src/nodes/expression.rs#L2547
warning: `filter(..).map(..)` can be simplified as `filter_map(..)`
--> libcst/src/nodes/expression.rs:2547:22
|
2547 | .filter(|x| x.is_some())
| ______________________^
2548 | | .map(|x| x.as_ref().unwrap())
| |_________________________________________________^ help: try: `filter_map(|x| x.as_ref())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
= note: `#[warn(clippy::manual_filter_map)]` on by default
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2382
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2382:18
|
2382 | &mut (*self.lbrace_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.lbrace_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
the following explicit lifetimes could be elided: 'a:
libcst/src/nodes/expression.rs#L2355
warning: the following explicit lifetimes could be elided: 'a
--> libcst/src/nodes/expression.rs:2355:36
|
2355 | pub(crate) fn make_fstringtext<'r, 'a>(value: &'a str) -> DeflatedFormattedStringText<'r, 'a> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
2355 - pub(crate) fn make_fstringtext<'r, 'a>(value: &'a str) -> DeflatedFormattedStringText<'r, 'a> {
2355 + pub(crate) fn make_fstringtext<'r>(value: &str) -> DeflatedFormattedStringText<'r, '_> {
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2284
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2284:18
|
2284 | &mut (*self.right_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.right_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2224
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2224:18
|
2224 | &mut (*self.await_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.await_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2175
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2175:22
|
2175 | &mut (*self.yield_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.yield_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2118
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2118:18
|
2118 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2114
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2114:18
|
2114 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this expression creates a reference which is immediately dereferenced by the compiler:
libcst/src/nodes/expression.rs#L2055
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> libcst/src/nodes/expression.rs:2055:68
|
2055 | adjust_parameters_trailing_whitespace(config, &mut params, &self.colon.tok)?;
| ^^^^^^^^^^^^^^^ help: change this to: `self.colon.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L2049
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:2049:22
|
2049 | &mut (*self.lambda_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.lambda_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1996
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1996:18
|
1996 | &mut (*self.else_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.else_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1992
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1992:18
|
1992 | &mut (*self.else_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.else_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1987
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1987:18
|
1987 | &mut (*self.if_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1983
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1983:18
|
1983 | &mut (*self.if_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1758
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1758:18
|
1758 | &mut (*self.star_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.star_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
large size difference between variants:
libcst/src/nodes/expression.rs#L1633
warning: large size difference between variants
--> libcst/src/nodes/expression.rs:1633:1
|
1633 | / pub enum DictElement<'a> {
1634 | |/ Simple {
1635 | || key: Expression<'a>,
1636 | || value: Expression<'a>,
1637 | || comma: Option<Comma<'a>>,
... ||
1640 | || colon_tok: TokenRef<'a>,
1641 | || },
| ||_____- the largest variant contains at least 416 bytes
1642 | | Starred(StarredDictElement<'a>),
| | ------------------------------- the second-largest variant contains at least 0 bytes
1643 | | }
| |__^ the entire enum is at least 0 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
= note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
|
1637 ~ comma: Box<Option<Comma<'a>>>,
1638 | whitespace_before_colon: ParenthesizableWhitespace<'a>,
1639 ~ whitespace_after_colon: Box<ParenthesizableWhitespace<'a>>,
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1470
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1470:18
|
1470 | &mut (*self.if_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1466
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1466:18
|
1466 | &mut (*self.if_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1406
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1406:18
|
1406 | &mut (*self.in_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1402
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1402:18
|
1402 | &mut (*self.in_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1397
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1397:18
|
1397 | &mut (*self.for_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1378
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1378:18
|
1378 | &mut (*self.for_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1321
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1321:18
|
1321 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this `impl` can be derived:
libcst/src/nodes/expression.rs#L1308
warning: this `impl` can be derived
--> libcst/src/nodes/expression.rs:1308:1
|
1308 | / impl<'a> Default for RightCurlyBrace<'a> {
1309 | | fn default() -> Self {
1310 | | Self {
1311 | | whitespace_before: Default::default(),
1312 | | }
1313 | | }
1314 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= help: remove the manual implementation...
help: ...and instead derive it
|
1303 + #[derive(Default)]
1304 | pub struct RightCurlyBrace<'a> {
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1289
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1289:18
|
1289 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this `impl` can be derived:
libcst/src/nodes/expression.rs#L1276
warning: this `impl` can be derived
--> libcst/src/nodes/expression.rs:1276:1
|
1276 | / impl<'a> Default for LeftCurlyBrace<'a> {
1277 | | fn default() -> Self {
1278 | | Self {
1279 | | whitespace_after: Default::default(),
1280 | | }
1281 | | }
1282 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it
|
1271 + #[derive(Default)]
1272 | pub struct LeftCurlyBrace<'a> {
|
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1235
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1235:18
|
1235 | &mut (*self.colon_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1231
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1231:18
|
1231 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1161
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1161:18
|
1161 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L1136
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:1136:18
|
1136 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L890
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:890:18
|
890 | &mut (*self.star_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.star_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L764
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:764:26
|
764 | &mut (*self.rpar_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.rpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L756
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:756:18
|
756 | &mut (*self.lpar_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.lpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L752
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:752:18
|
752 | &mut (*self.lpar_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.lpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L441
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:441:18
|
441 | &mut (*self.rpar_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.rpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/expression.rs#L414
warning: deref which would be done by auto-deref
--> libcst/src/nodes/expression.rs:414:18
|
414 | &mut (*self.lpar_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.lpar_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2403
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2403:50
|
2403 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2342
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2342:18
|
2342 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2325
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2325:50
|
2325 | parse_simple_whitespace(config, &mut (*self.with_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^ help: try: `self.with_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2319
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2319:22
|
2319 | &mut (*self.with_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.with_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2133
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2133:50
|
2133 | parse_simple_whitespace(config, &mut (*self.try_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2129
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2129:18
|
2129 | &mut (*self.try_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2073
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2073:50
|
2073 | parse_simple_whitespace(config, &mut (*self.try_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L2069
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:2069:18
|
2069 | &mut (*self.try_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.try_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1941
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1941:22
|
1941 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1933
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1933:18
|
1933 | &mut (*self.except_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.except_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1928
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1928:18
|
1928 | &mut (*self.except_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.except_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1878
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1878:18
|
1878 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1873
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1873:18
|
1873 | &mut (*self.finally_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.finally_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1815
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1815:18
|
1815 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1788
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1788:50
|
1788 | parse_simple_whitespace(config, &mut (*self.class_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^^ help: try: `self.class_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1777
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1777:18
|
1777 | &mut (*self.class_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.class_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1685
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1685:18
|
1685 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1681
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1681:50
|
1681 | parse_simple_whitespace(config, &mut (*self.while_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^^ help: try: `self.while_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1677
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1677:18
|
1677 | &mut (*self.while_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.while_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1619
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1619:18
|
1619 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1615
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1615:50
|
1615 | parse_simple_whitespace(config, &mut (*self.in_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1613
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1613:50
|
1613 | parse_simple_whitespace(config, &mut (*self.in_tok).whitespace_before.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.in_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1610
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1610:50
|
1610 | parse_simple_whitespace(config, &mut (*self.for_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1605
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1605:22
|
1605 | &mut (*self.for_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.for_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1505
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1505:50
|
1505 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1460
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1460:50
|
1460 | parse_simple_whitespace(config, &mut (*self.tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1367
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1367:22
|
1367 | &mut (*self.raise_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.raise_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1327
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1327:18
|
1327 | &mut (*self.assert_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.assert_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1270
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1270:22
|
1270 | &mut (*self.return_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.return_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1174
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1174:18
|
1174 | &mut (*self.tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1170
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1170:18
|
1170 | &mut (*self.tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^ help: try: `self.tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1128
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1128:18
|
1128 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1123
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1123:18
|
1123 | &mut (*self.else_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^ help: try: `self.else_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1068
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1068:18
|
1068 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1064
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1064:50
|
1064 | parse_simple_whitespace(config, &mut (*self.if_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L1060
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:1060:18
|
1060 | &mut (*self.if_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.if_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L997
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:997:18
|
997 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L993
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:993:50
|
993 | parse_simple_whitespace(config, &mut (*self.at_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^ help: try: `self.at_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L989
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:989:18
|
989 | &mut (*self.at_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.at_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L937
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:937:18
|
937 | &mut (*self.colon_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.colon_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
this expression creates a reference which is immediately dereferenced by the compiler:
libcst/src/nodes/statement.rs#L932
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> libcst/src/nodes/statement.rs:932:68
|
932 | adjust_parameters_trailing_whitespace(config, &mut params, &self.close_paren_tok)?;
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.close_paren_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L929
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:929:18
|
929 | &mut (*self.open_paren_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.open_paren_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L903
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:903:50
|
903 | parse_simple_whitespace(config, &mut (*self.def_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^ help: try: `self.def_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L890
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:890:22
|
890 | &mut (*self.def_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^ help: try: `self.def_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L762
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:762:18
|
762 | &mut (*self.as_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.as_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L758
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:758:18
|
758 | &mut (*self.as_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^ help: try: `self.as_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L634
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:634:22
|
634 | &mut (*self.import_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.import_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L615
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:615:18
|
615 | &mut (*self.import_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.import_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L609
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:609:50
|
609 | parse_simple_whitespace(config, &mut (*self.from_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^ help: try: `self.from_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L543
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:543:18
|
543 | &mut (*self.import_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.import_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L493
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:493:50
|
493 | parse_simple_whitespace(config, &mut (*self.equal_tok).whitespace_after.borrow_mut())?;
| ^^^^^^^^^^^^^^^^^ help: try: `self.equal_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L490
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:490:18
|
490 | &mut (*self.equal_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.equal_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L279
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:279:18
|
279 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L273
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:273:18
|
273 | &mut (*self.first_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.first_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L209
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:209:18
|
209 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L204
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:204:18
|
204 | &mut (*self.first_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^ help: try: `self.first_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L169
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:169:18
|
169 | &mut (*self.newline_tok).whitespace_before.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^^ help: try: `self.newline_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
libcst/src/nodes/statement.rs#L164
warning: deref which would be done by auto-deref
--> libcst/src/nodes/statement.rs:164:18
|
164 | &mut (*self.dedent_tok).whitespace_after.borrow_mut(),
| ^^^^^^^^^^^^^^^^^^ help: try: `self.dedent_tok`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
the following explicit lifetimes could be elided: 'a:
libcst/src/tokenizer/whitespace_parser.rs#L353
warning: the following explicit lifetimes could be elided: 'a
--> libcst/src/tokenizer/whitespace_parser.rs:353:22
|
353 | fn advance_this_line<'a>(
| ^^
354 | config: &Config<'a>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
353 ~ fn advance_this_line(
354 ~ config: &Config<'_>,
|
|
the following explicit lifetimes could be elided: 'a:
libcst/src/tokenizer/whitespace_parser.rs#L344
warning: the following explicit lifetimes could be elided: 'a
--> libcst/src/tokenizer/whitespace_parser.rs:344:25
|
344 | fn advance_to_next_line<'a>(config: &Config<'a>, state: &mut State) -> Result<()> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
344 - fn advance_to_next_line<'a>(config: &Config<'a>, state: &mut State) -> Result<()> {
344 + fn advance_to_next_line(config: &Config<'_>, state: &mut State) -> Result<()> {
|
|
binary comparison to literal `Option::None`:
libcst/src/tokenizer/core/mod.rs#L409
warning: binary comparison to literal `Option::None`
--> libcst/src/tokenizer/core/mod.rs:409:28
|
409 | if self.text_pos.peek() == None {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `self.text_pos.peek().is_none()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
= note: `#[warn(clippy::partialeq_to_none)]` on by default
|
Rust unit tests (macos-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
coverage
Expired
|
992 KB |
|
sphinx-docs
Expired
|
20.1 MB |
|