rust/clippy_lints
bors 2bdadd8e7d Auto merge of #6151 - bofh69:master, r=ebroto
Preserve raw strs for: format!(s) to s.to_string() lint

fixes #6142

clippy::useless_format will keep the source's string (after converting {{ and }} to { and }) when suggesting a change from format!() to .to_string() usage. Ie:
|     let s = format!(r#""hello {{}}""#);
|             ^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `r#""hello {}""#.to_string()`

changelog: [`useless_format`]: preserve raw string literals when no arguments to `format!()` are provided.
2020-10-09 23:14:58 +00:00
..
src Auto merge of #6151 - bofh69:master, r=ebroto 2020-10-09 23:14:58 +00:00
Cargo.toml clippy_lints: Replace lazy_static with SyncLazy 2020-10-06 14:39:04 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.