1
Fork 0

Fix match_ref_pats flagged by Clippy

This commit is contained in:
Seo Sanghyeon 2015-11-17 23:24:49 +09:00
parent c61e8fd61a
commit 95f6ea920d
7 changed files with 57 additions and 57 deletions

View file

@ -1687,9 +1687,9 @@ pub enum Visibility {
impl Visibility {
pub fn inherit_from(&self, parent_visibility: Visibility) -> Visibility {
match self {
&Inherited => parent_visibility,
&Public => *self
match *self {
Inherited => parent_visibility,
Public => *self
}
}
}