We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f27a4 commit 5dd6549Copy full SHA for 5dd6549
xtask/src/codegen.rs
@@ -41,7 +41,7 @@ pub enum Mode {
41
/// With verify = false,
42
fn update(path: &Path, contents: &str, mode: Mode) -> Result<()> {
43
match fs2::read_to_string(path) {
44
- Ok(ref old_contents) if normalize(old_contents) == normalize(contents) => {
+ Ok(old_contents) if normalize(&old_contents) == normalize(contents) => {
45
return Ok(());
46
}
47
_ => (),
0 commit comments