Format all the let chains in compiler
This commit is contained in:
parent
2763ca50da
commit
b2d2184ede
206 changed files with 3120 additions and 2228 deletions
|
@ -1342,7 +1342,7 @@ impl<'tcx> LateContext<'tcx> {
|
|||
&& let Some(init) = match parent_node {
|
||||
hir::Node::Expr(expr) => Some(expr),
|
||||
hir::Node::Local(hir::Local { init, .. }) => *init,
|
||||
_ => None
|
||||
_ => None,
|
||||
}
|
||||
{
|
||||
expr = init.peel_blocks();
|
||||
|
@ -1391,9 +1391,9 @@ impl<'tcx> LateContext<'tcx> {
|
|||
hir::ItemKind::Const(.., body_id) | hir::ItemKind::Static(.., body_id) => {
|
||||
Some(self.tcx.hir().body(body_id).value)
|
||||
}
|
||||
_ => None
|
||||
}
|
||||
_ => None
|
||||
_ => None,
|
||||
},
|
||||
_ => None,
|
||||
}
|
||||
{
|
||||
expr = init.peel_blocks();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue