aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-31 08:28:53 +0100
committerAleksey Kladov <[email protected]>2020-05-31 08:28:53 +0100
commit5dd65495699fb3d9c6e4b3c4f27b78a64d23e567 (patch)
tree4ee4ff9231a74933637b39cb26c7e093cb347e20
parentc8f27a4a886413a15a2a6af4a87b39b901c873a8 (diff)
Simplify
-rw-r--r--xtask/src/codegen.rs2
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,
42fn update(path: &Path, contents: &str, mode: Mode) -> Result<()> { 42fn 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 _ => (),