diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-28 01:55:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-28 01:55:49 +0100 |
| commit | 02b96b3ecc48dc5245e425fc248163cfaae9643e (patch) | |
| tree | bad29616a580bcc720dcbedc94715e30ee89ba01 /src/libsyntax | |
| parent | 4c9e44fc5f2958706fb747d7ccf4d49f1f384545 (diff) | |
| parent | 7be94a8a958750cf57c0fa41ad7797a2cd1630de (diff) | |
| download | rust-02b96b3ecc48dc5245e425fc248163cfaae9643e.tar.gz rust-02b96b3ecc48dc5245e425fc248163cfaae9643e.zip | |
Rollup merge of #69529 - matthiaskrgr:clippy_identity_conversion, r=Mark-Simulacrum
don't use .into() to convert types into identical types.
This removes redundant `.into()` calls.
example: `let s: String = format!("hello").into();`
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/attr/mod.rs b/src/libsyntax/attr/mod.rs index cd485e71378..bc5c86b02b3 100644 --- a/src/libsyntax/attr/mod.rs +++ b/src/libsyntax/attr/mod.rs @@ -529,7 +529,7 @@ impl MetaItemKind { TokenTree::Delimited( DelimSpan::from_single(span), token::Paren, - TokenStream::new(tokens).into(), + TokenStream::new(tokens), ) .into(), ] |
