Skip to content

Commit f4ec52a

Browse files
committed
tests: address review comments
1 parent 9244a85 commit f4ec52a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/snapshot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ fn static_api() -> Result<(), Error> {
4343
for file in &files {
4444
let expected = std::fs::read_to_string(dir_expected.join(file))
4545
.ok()
46-
.unwrap_or_else(String::new);
46+
.unwrap_or_default();
4747
let output = std::fs::read_to_string(dir_output.join(file))
4848
.ok()
49-
.unwrap_or_else(String::new);
49+
.unwrap_or_default();
5050

5151
let changeset = difference::Changeset::new(&expected, &output, "\n");
5252
if changeset.distance != 0 {

0 commit comments

Comments
 (0)