Remove unneeded & on match pattern

This commit is contained in:
Santiago Pastorino
2020-01-24 13:27:01 -03:00
parent 5f1caa4032
commit a13a7d74ca
+2 -2
View File
@@ -1797,8 +1797,8 @@ pub fn is_indirect(&self) -> bool {
// FIXME: can we safely swap the semantics of `fn base_local` below in here instead?
pub fn local_or_deref_local(&self) -> Option<Local> {
match self.as_ref() {
PlaceRef { local, projection: &[] }
| PlaceRef { local, projection: &[ProjectionElem::Deref] } => Some(local),
PlaceRef { local, projection: [] }
| PlaceRef { local, projection: [ProjectionElem::Deref] } => Some(local),
_ => None,
}
}