Address comments

This commit is contained in:
Vadim Petrochenkov 2018-07-06 23:18:38 +03:00
parent e3acb341b2
commit 7d142c1e53
8 changed files with 15 additions and 18 deletions

View file

@ -1581,7 +1581,8 @@ impl TyKind {
pub fn is_implicit_self(&self) -> bool {
if let TyKind::ImplicitSelf = *self { true } else { false }
}
pub(crate) fn is_empty_tuple(&self) -> bool {
crate fn is_unit(&self) -> bool {
if let TyKind::Tup(ref tys) = *self { tys.is_empty() } else { false }
}
}
@ -1982,7 +1983,7 @@ pub enum VisibilityKind {
}
impl VisibilityKind {
pub fn is_public(&self) -> bool {
pub fn is_pub(&self) -> bool {
if let VisibilityKind::Public = *self { true } else { false }
}
}