]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #98043 - TaKO8Ki:remove-unnecessary-to-string, r=davidtwco
authorMatthias Krüger <matthias.krueger@famsik.de>
Mon, 13 Jun 2022 19:35:56 +0000 (21:35 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Jun 2022 19:35:56 +0000 (21:35 +0200)
commit9d27f2e6659d14edcdd791c20725eb891d3784e1
tree4d15decdf6e2126d071c82aac96c5d286c1e8089
parentf758b4f4a064a56a02aee34ca1246d05c4fe8b31
parentfd1290a63165155e4f7ec469ae6aeddf0bfb9f70
Rollup merge of #98043 - TaKO8Ki:remove-unnecessary-to-string, r=davidtwco

Remove unnecessary `to_string` and `String::new`

https://github.com/rust-lang/rust/pull/96468/commits/73fa217bc11fbac76f730223f6766c8e03513b5e changed the type of the `suggestion` argument to `impl ToString`. This patch removes unnecessary `to_string` and `String::new`.

cc: `````@davidtwco`````
compiler/rustc_lint/src/builtin.rs