Adopt let_else in even more places
This commit is contained in:
parent
3cfa4def7c
commit
60f969a4f2
26 changed files with 50 additions and 104 deletions
|
@ -61,7 +61,7 @@ impl rustc_query_system::dep_graph::DepKind for DepKind {
|
|||
OP: for<'a> FnOnce(TaskDepsRef<'a>),
|
||||
{
|
||||
ty::tls::with_context_opt(|icx| {
|
||||
let icx = if let Some(icx) = icx { icx } else { return };
|
||||
let Some(icx) = icx else { return };
|
||||
op(icx.task_deps)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue