Skip to content

Commit ac0dd45

Browse files
authored
minor: fix new clippy lint on rust 1.45 (#200)
1 parent df16657 commit ac0dd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/spec/corpus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn run_test(test: TestFile) {
109109
fixed_string.push_str(".0");
110110
}
111111

112-
std::mem::replace(s, fixed_string);
112+
*s = fixed_string;
113113
}
114114
}
115115
}

0 commit comments

Comments
 (0)