error: redundant clone
--> tests/test_fmt.rs:17:58
|
17 | let none_nonempty = Group::new(Delimiter::None, inner.clone());
| ^^^^^^^^ help: remove this
|
= note: `-D clippy::redundant-clone` implied by `-D clippy::all`
note: this value is dropped without further use
--> tests/test_fmt.rs:17:53
|
17 | let none_nonempty = Group::new(Delimiter::None, inner.clone());
| ^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
error: could not compile `proc-macro2` due to previous error
warning: build failed, waiting for other jobs to finish...
error: redundant clone
--> tests/test.rs:188:19
|
188 | let s2 = s.to_string().parse::<TokenStream>().unwrap().to_string();
| ^^^^^^^^^^^^ help: remove this
|
= note: `-D clippy::redundant-clone` implied by `-D clippy::all`
note: cloned value is neither consumed nor mutated
--> tests/test.rs:188:18
|
188 | let s2 = s.to_string().parse::<TokenStream>().unwrap().to_string();
| ^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone