Skip to content

Commit 5dd6549

Browse files
committed
Simplify
1 parent c8f27a4 commit 5dd6549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub enum Mode {
4141
/// With verify = false,
4242
fn update(path: &Path, contents: &str, mode: Mode) -> Result<()> {
4343
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) => {
4545
return Ok(());
4646
}
4747
_ => (),

0 commit comments

Comments
 (0)