aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorKevaundray Wedderburn <[email protected]>2021-01-18 16:58:29 +0000
committerKevaundray Wedderburn <[email protected]>2021-01-18 16:58:29 +0000
commitda104bb0f57b061547860184cb81c507f50f9f8e (patch)
tree0c63c47605c153e3f55db4f7a969fb6c5930ea14 /crates/hir_def
parent725c20e8c51aa84a52bbfa96dca7bd999681b541 (diff)
cargo fmt
Diffstat (limited to 'crates/hir_def')
-rw-r--r--crates/hir_def/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs
index 61b64f70e..a99f73882 100644
--- a/crates/hir_def/src/path.rs
+++ b/crates/hir_def/src/path.rs
@@ -88,7 +88,7 @@ impl ModPath {
88 /// If this path is a single identifier, like `foo`, return its name. 88 /// If this path is a single identifier, like `foo`, return its name.
89 pub fn as_ident(&self) -> Option<&Name> { 89 pub fn as_ident(&self) -> Option<&Name> {
90 if !self.is_ident() { 90 if !self.is_ident() {
91 return None 91 return None;
92 } 92 }
93 self.segments.first() 93 self.segments.first()
94 } 94 }