mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
cargo fmt
This commit is contained in:
parent
725c20e8c5
commit
da104bb0f5
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ impl ModPath {
|
|||
/// 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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue