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