mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Simplify
This commit is contained in:
parent
c8f27a4a88
commit
5dd6549569
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ pub enum Mode {
|
|||
/// With verify = false,
|
||||
fn update(path: &Path, contents: &str, mode: Mode) -> Result<()> {
|
||||
match fs2::read_to_string(path) {
|
||||
Ok(ref old_contents) if normalize(old_contents) == normalize(contents) => {
|
||||
Ok(old_contents) if normalize(&old_contents) == normalize(contents) => {
|
||||
return Ok(());
|
||||
}
|
||||
_ => (),
|
||||
|
|
Loading…
Reference in a new issue