diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index 39af47ebc6..1507e7cdd0 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -426,8 +426,7 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option { ty_args.format_with(", ", |ty, cb| cb(&ty.display(db))) ); } - format_to!(path, "::{}\"", def_name); - return Some(format!("\"{}", path)); + return Some(format!(r#""{}::{}""#, path, def_name)); } } }