Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_expand/src/mod_path.rs')
| -rw-r--r-- | crates/hir_expand/src/mod_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_expand/src/mod_path.rs b/crates/hir_expand/src/mod_path.rs index 5e264d0398..bb2f6350c6 100644 --- a/crates/hir_expand/src/mod_path.rs +++ b/crates/hir_expand/src/mod_path.rs @@ -121,7 +121,7 @@ impl Display for ModPath { f.write_str("::")?; } first_segment = false; - write!(f, "{}", segment)?; + segment.fmt(f)?; } Ok(()) } |