From 5dd65495699fb3d9c6e4b3c4f27b78a64d23e567 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 May 2020 09:28:53 +0200 Subject: Simplify --- xtask/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { /// 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(()); } _ => (), -- cgit v1.2.3