cargo fmt

This commit is contained in:
Kevaundray Wedderburn 2021-01-18 16:58:29 +00:00
parent 725c20e8c5
commit da104bb0f5

View File

@ -88,7 +88,7 @@ pub fn is_self(&self) -> bool {
/// If this path is a single identifier, like `foo`, return its name.
pub fn as_ident(&self) -> Option<&Name> {
if !self.is_ident() {
return None
return None;
}
self.segments.first()
}