2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:48:14
|
2021-12-24 05:41:00 +00:00
|
|
|
|
|
|
|
|
LL | with_new.unwrap_or_else(Vec::new);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2021-12-24 05:41:00 +00:00
|
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
= note: `-D clippy::unwrap-or-default` implied by `-D warnings`
|
2021-12-24 05:41:00 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:62:23
|
2021-07-30 06:56:47 +00:00
|
|
|
|
|
|
|
|
LL | with_real_default.unwrap_or_else(<HasDefaultAndDuplicate as Default>::default);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2021-07-30 06:56:47 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:65:24
|
2021-07-30 06:56:47 +00:00
|
|
|
|
|
|
|
|
LL | with_default_trait.unwrap_or_else(Default::default);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2021-07-30 06:56:47 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:68:23
|
2021-07-30 06:56:47 +00:00
|
|
|
|
|
|
|
|
LL | with_default_type.unwrap_or_else(u64::default);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2021-07-30 06:56:47 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:71:23
|
2021-12-24 05:42:56 +00:00
|
|
|
|
|
|
|
|
LL | with_default_type.unwrap_or_else(Vec::new);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2021-12-24 05:42:56 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:74:18
|
2022-09-06 04:38:29 +00:00
|
|
|
|
|
|
|
|
LL | empty_string.unwrap_or_else(|| "".to_string());
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2022-09-06 04:38:29 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:78:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:81:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:84:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:87:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:90:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:93:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:96:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `unwrap_or_else` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:99:12
|
2023-07-09 22:59:25 +00:00
|
|
|
|
|
|
|
|
LL | option.unwrap_or_else(Vec::new).push(1);
|
2023-07-20 00:05:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_default()`
|
2023-07-09 22:59:25 +00:00
|
|
|
|
2023-07-20 00:05:16 +00:00
|
|
|
error: use of `or_insert_with` to construct default value
|
|
|
|
--> $DIR/unwrap_or_else_default.rs:128:32
|
|
|
|
|
|
|
|
|
LL | let _ = inner_map.entry(0).or_insert_with(Default::default);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
|
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
2021-12-24 05:42:56 +00:00
|
|
|
|