diff options
Diffstat (limited to 'xtask')
-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 | _ => (), |