diff options
author | Aleksey Kladov <[email protected]> | 2020-05-31 08:28:53 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-05-31 08:28:53 +0100 |
commit | 5dd65495699fb3d9c6e4b3c4f27b78a64d23e567 (patch) | |
tree | 4ee4ff9231a74933637b39cb26c7e093cb347e20 | |
parent | c8f27a4a886413a15a2a6af4a87b39b901c873a8 (diff) |
Simplify
-rw-r--r-- | xtask/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index 3e2a66979..f47d54125 100644 --- a/xtask/src/codegen.rs +++ b/xtask/src/codegen.rs | |||
@@ -41,7 +41,7 @@ pub enum Mode { | |||
41 | /// With verify = false, | 41 | /// With verify = false, |
42 | fn update(path: &Path, contents: &str, mode: Mode) -> Result<()> { | 42 | fn update(path: &Path, contents: &str, mode: Mode) -> Result<()> { |
43 | match fs2::read_to_string(path) { | 43 | match fs2::read_to_string(path) { |
44 | Ok(ref old_contents) if normalize(old_contents) == normalize(contents) => { | 44 | Ok(old_contents) if normalize(&old_contents) == normalize(contents) => { |
45 | return Ok(()); | 45 | return Ok(()); |
46 | } | 46 | } |
47 | _ => (), | 47 | _ => (), |