Fix match_ref_pats flagged by Clippy
This commit is contained in:
parent
c61e8fd61a
commit
95f6ea920d
7 changed files with 57 additions and 57 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue