Skip to content

Commit 3304436

Browse files
committed
Fix test
1 parent 0ab839d commit 3304436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/unwrap_or_else_default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn unwrap_or_else_default() {
6868
with_default_type.unwrap_or_else(u64::default);
6969

7070
let with_default_type = Some(1);
71-
with_default_type.unwrap_or_else(0u64);
71+
with_default_type.unwrap_or(0u64);
7272
}
7373

7474
fn main() {}

0 commit comments

Comments
 (0)