From bf47acf1d3451eb281ea56a6ad8f5e1834ce6a8f Mon Sep 17 00:00:00 2001 From: SeniorMars Date: Mon, 21 Feb 2022 15:23:09 -0600 Subject: [PATCH] Update crates/ide/src/runnables.rs Co-authored-by: Lukas Wirth --- crates/ide/src/runnables.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); } } }