From 4a573076745ba4859623e7f13ed94fca04bc1b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Wed, 27 Apr 2022 15:27:50 +0300 Subject: [PATCH] Revert "Correctly fix formatting doc tests with generics" This reverts commit 5f3327a6b8925791ecdd9dbecb1bf1537c3ef9fc. --- crates/ide/src/runnables.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index fea3d7147e8..8c2219860bd 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -435,8 +435,8 @@ 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)); + format_to!(path, "::{}", def_name); + return Some(path); } } } @@ -978,7 +978,7 @@ impl Data { }, kind: DocTest { test_id: Path( - "\"Data::foo\"", + "Data::foo", ), }, cfg: None, @@ -1372,7 +1372,7 @@ impl Foo { }, kind: DocTest { test_id: Path( - "\"foo::Foo::foo\"", + "foo::Foo::foo", ), }, cfg: None, @@ -2078,7 +2078,7 @@ impl Foo { }, kind: DocTest { test_id: Path( - "\"Foo::t\"", + "Foo::t", ), }, cfg: None,