Nick Fitzgerald
e3a423c3e8
Remove some uses of foo.expect(&format!(...)) pattern
...
This eagerly evaluates the `format!` and produces a `String` with a heap
allocation, regardless whether `foo` is `Some`/`Ok` or `None`/`Err`. Using
`foo.unwrap_or_else(|| panic!(...))` makes it so that the error message
formatting is only evaluated if `foo` is `None`/`Err`.
2021-10-25 17:35:23 -07:00
..
2021-10-10 14:43:55 +02:00
2021-10-12 14:22:07 +02:00
2021-10-25 17:35:23 -07:00
2021-10-19 13:19:20 -05:00
2021-10-21 12:07:39 -07:00
2021-10-12 14:37:36 +02:00
2020-05-28 11:34:58 -07:00
2021-10-04 10:36:12 +02:00
2019-10-10 16:45:48 +02:00
2021-10-04 19:11:52 +02:00
2021-10-04 19:11:52 +02:00
2021-09-19 15:02:04 +01:00
2019-01-28 15:56:54 -08:00
2020-04-15 17:21:28 -07:00
2019-10-24 17:20:12 -07:00
2020-03-05 16:11:13 +01:00
2020-03-05 16:11:13 +01:00
2019-01-28 15:56:54 -08:00
2021-09-30 21:27:23 +02:00
2019-10-02 11:50:44 -07:00
2021-10-11 13:09:16 -07:00
2021-10-04 19:11:52 +02:00
2021-04-16 10:27:19 +02:00
2020-03-03 13:21:13 -06:00
2021-08-05 13:44:16 -05:00
2021-10-12 14:37:36 +02:00
2021-10-12 14:37:36 +02:00
2021-10-04 10:36:12 +02:00
2020-07-17 18:14:16 +02:00
2021-05-04 13:51:28 +02:00
2019-09-26 18:00:03 +02:00
2021-07-03 14:34:42 +02:00
2020-02-07 10:46:47 -06:00
2021-10-12 14:37:36 +02:00
2020-12-03 14:43:28 -08:00
2021-10-11 12:50:15 -05:00
2021-10-04 10:36:12 +02:00
2021-09-30 21:27:23 +02:00
2021-10-12 14:18:52 +02:00