diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-12-30 22:49:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-30 22:49:24 +0900 |
| commit | 07083739fb2b971fa174d5443ab3e675d363fa1a (patch) | |
| tree | 89e9d66f8d227c2f2d603d53985d89b52d6b8cf8 /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | 7494aef979b7f8e4237f5bb06b628b6d213f26d1 (diff) | |
| parent | e5ead5fc5875ec2e32f001f25ec0007cd5d527fa (diff) | |
| download | rust-07083739fb2b971fa174d5443ab3e675d363fa1a.tar.gz rust-07083739fb2b971fa174d5443ab3e675d363fa1a.zip | |
Rollup merge of #80492 - matthiaskrgr:tasty_wraps, r=varkor
remove empty wraps, don't return Results from from infallible functions This makes code easier to understand because it is more obvious when a function actually can't fail (return Err or None) Make functions that only ever return Some(x), return x directly Remove return type from functions that return Option<(), Err> but would only ever return Ok(()). Found with `clippy::unnecessary_wraps`
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
