Remove unneeded .as_bytes() (#15196)
`&str` already implements `AsRef<[u8]>` changelog: none
This commit is contained in:
commit
b631cef729
1 changed files with 1 additions and 1 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue