Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4a57307

Browse files
committed
Revert "Correctly fix formatting doc tests with generics"
This reverts commit 5f3327a.
1 parent 0d02be7 commit 4a57307

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/ide/src/runnables.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option<Runnable> {
435435
ty_args.format_with(", ", |ty, cb| cb(&ty.display(db)))
436436
);
437437
}
438-
format_to!(path, "::{}\"", def_name);
439-
return Some(format!("\"{}", path));
438+
format_to!(path, "::{}", def_name);
439+
return Some(path);
440440
}
441441
}
442442
}
@@ -978,7 +978,7 @@ impl Data {
978978
},
979979
kind: DocTest {
980980
test_id: Path(
981-
"\"Data::foo\"",
981+
"Data::foo",
982982
),
983983
},
984984
cfg: None,
@@ -1372,7 +1372,7 @@ impl Foo {
13721372
},
13731373
kind: DocTest {
13741374
test_id: Path(
1375-
"\"foo::Foo::foo\"",
1375+
"foo::Foo::foo",
13761376
),
13771377
},
13781378
cfg: None,
@@ -2078,7 +2078,7 @@ impl<T, U> Foo<T, U> {
20782078
},
20792079
kind: DocTest {
20802080
test_id: Path(
2081-
"\"Foo<T, U>::t\"",
2081+
"Foo<T, U>::t",
20822082
),
20832083
},
20842084
cfg: None,

0 commit comments

Comments
 (0)