Simplify
This commit is contained in:
parent
c8f27a4a88
commit
5dd6549569
@ -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 New Issue
Block a user