Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | crates/ide/src/runnables.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index 2c21bbc165..fea3d7147e 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -435,7 +435,8 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option<Runnable> { ty_args.format_with(", ", |ty, cb| cb(&ty.display(db))) ); } - return Some(format!(r#""{}::{}""#, path, def_name)); + format_to!(path, "::{}\"", def_name); + return Some(format!("\"{}", path)); } } } |