fix + update expects

This commit is contained in:
Jake Heinz 2021-08-04 06:12:41 +00:00
parent e01ff775ae
commit 44726b6ca3
4 changed files with 18 additions and 14 deletions

View file

@ -1842,7 +1842,10 @@ impl Local {
pub fn is_ref(self, db: &dyn HirDatabase) -> bool {
let body = db.body(self.parent);
matches!(&body[self.pat_id], Pat::Bind { mode: BindingAnnotation::Ref | BindingAnnotation::RefMut, .. })
matches!(
&body[self.pat_id],
Pat::Bind { mode: BindingAnnotation::Ref | BindingAnnotation::RefMut, .. }
)
}
pub fn parent(self, _db: &dyn HirDatabase) -> DefWithBody {