]> git.lizzy.rs Git - rust.git/commit
Preserve raw strs for: format!(s) to s.to_string() lint
authorSebastian Andersson <sebastian@bittr.nu>
Fri, 9 Oct 2020 18:23:03 +0000 (20:23 +0200)
committerSebastian Andersson <sebastian@bittr.nu>
Fri, 9 Oct 2020 18:23:03 +0000 (20:23 +0200)
commit7b7ddfa55da889b41e90243ac59a04eed832a71e
tree769d11a94ae4790f63c261fe172b6aaf813276ec
parentfcf22d90bb9087f03e60c03ccccdc2f95668bf88
Preserve raw strs for: format!(s) to s.to_string() lint

Ie:
|     let s = format!(r#""hello""#);
|             ^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `r#""hello""#.to_string()`
clippy_lints/src/format.rs
tests/ui/format.fixed
tests/ui/format.stderr