Skip to content

Commit

Permalink
Remove unneeded & on match pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jan 28, 2020
1 parent 5f1caa4 commit a13a7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/mir/mod.rs
Expand Up @@ -1797,8 +1797,8 @@ impl<'tcx> Place<'tcx> {
// 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,
}
}
Expand Down

0 comments on commit a13a7d7

Please sign in to comment.