diff options
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r-- | crates/ra_hir_def/src/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index e84efe2ab..4512448e0 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs | |||
@@ -273,7 +273,7 @@ impl From<Name> for ModPath { | |||
273 | impl Display for ModPath { | 273 | impl Display for ModPath { |
274 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | 274 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
275 | let mut first_segment = true; | 275 | let mut first_segment = true; |
276 | let mut add_segment = |s| { | 276 | let mut add_segment = |s| -> fmt::Result { |
277 | if !first_segment { | 277 | if !first_segment { |
278 | f.write_str("::")?; | 278 | f.write_str("::")?; |
279 | } | 279 | } |