cargo fmt
This commit is contained in:
parent
725c20e8c5
commit
da104bb0f5
@ -88,7 +88,7 @@ impl ModPath {
|
|||||||
/// If this path is a single identifier, like `foo`, return its name.
|
/// If this path is a single identifier, like `foo`, return its name.
|
||||||
pub fn as_ident(&self) -> Option<&Name> {
|
pub fn as_ident(&self) -> Option<&Name> {
|
||||||
if !self.is_ident() {
|
if !self.is_ident() {
|
||||||
return None
|
return None;
|
||||||
}
|
}
|
||||||
self.segments.first()
|
self.segments.first()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user