Revert "Update crates/ide/src/runnables.rs"

This reverts commit bf47acf1d3.
This commit is contained in:
Laurențiu Nicola 2022-04-27 15:27:48 +03:00
parent c1685e56b7
commit 0d02be7330

View file

@ -435,7 +435,8 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option<Runnable> {
ty_args.format_with(", ", |ty, cb| cb(&ty.display(db)))
);
}
return Some(format!(r#""{}::{}""#, path, def_name));
format_to!(path, "::{}\"", def_name);
return Some(format!("\"{}", path));
}
}
}