]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #52642 - ljedrz:expect_fun_call, r=Mark-Simulacrum
authorkennytm <kennytm@gmail.com>
Tue, 24 Jul 2018 01:50:00 +0000 (09:50 +0800)
committerGitHub <noreply@github.com>
Tue, 24 Jul 2018 01:50:00 +0000 (09:50 +0800)
commit3efc612a930822ea1b9c6749a3d146235c324a83
treea558997b7277f80d80d3691d0d05d4982622e824
parent378ef99eb3849033fa298ce0953c35a6d5a0b16b
parentfe588d894fa392fdf787c18a959b342d38d0c71c
Rollup merge of #52642 - ljedrz:expect_fun_call, r=Mark-Simulacrum

Replace a few expect+format combos with unwrap_or_else+panic

That way the error strings won't be created if the related errors are not triggered.