diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index 2c21bbc165..8c2219860b 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 { ty_args.format_with(", ", |ty, cb| cb(&ty.display(db))) ); } - return Some(format!(r#""{}::{}""#, path, def_name)); + format_to!(path, "::{}", def_name); + return Some(path); } } } @@ -977,7 +978,7 @@ impl Data { }, kind: DocTest { test_id: Path( - "\"Data::foo\"", + "Data::foo", ), }, cfg: None, @@ -1371,7 +1372,7 @@ impl Foo { }, kind: DocTest { test_id: Path( - "\"foo::Foo::foo\"", + "foo::Foo::foo", ), }, cfg: None, @@ -2077,7 +2078,7 @@ impl Foo { }, kind: DocTest { test_id: Path( - "\"Foo::t\"", + "Foo::t", ), }, cfg: None,