Update crates/ide/src/runnables.rs

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
SeniorMars 2022-02-21 15:23:09 -06:00 committed by GitHub
parent 5f3327a6b8
commit bf47acf1d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,8 +426,7 @@ fn module_def_doctest(db: &RootDatabase, def: Definition) -> Option<Runnable> {
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));
}
}
}