diff options
| author | dswij <dharmasw@outlook.com> | 2025-07-03 15:51:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-03 15:51:56 +0000 |
| commit | b631cef729e0c9972ffbf0bc8b045c8b1ca827eb (patch) | |
| tree | bee60742e473ecd21e8098e773022e3764783c51 | |
| parent | a7c146953021ed3a6a62dc4f9a8fef203aa1a4be (diff) | |
| parent | fc3d5e682781ec440dc21f3235207e3d4e230de3 (diff) | |
| download | rust-b631cef729e0c9972ffbf0bc8b045c8b1ca827eb.tar.gz rust-b631cef729e0c9972ffbf0bc8b045c8b1ca827eb.zip | |
Remove unneeded `.as_bytes()` (#15196)
`&str` already implements `AsRef<[u8]>` changelog: none
| -rw-r--r-- | clippy_dev/src/fmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_dev/src/fmt.rs b/clippy_dev/src/fmt.rs index c1b6b370706..bd9e57c9f6d 100644 --- a/clippy_dev/src/fmt.rs +++ b/clippy_dev/src/fmt.rs @@ -223,7 +223,7 @@ fn fmt_conf(check: bool) -> Result<(), Error> { if check { return Err(Error::CheckFailed); } - fs::write(path, new_text.as_bytes())?; + fs::write(path, new_text)?; } Ok(()) } |
