Moved the make_item_keywords function to context.rs as it is only used there

This commit is contained in:
Nicholas-Baron
2021-02-13 23:03:07 -08:00
parent 6c7d7a6bf4
commit 14983b9812
2 changed files with 6 additions and 5 deletions

View File

@@ -2924,9 +2924,6 @@ fn sidebar_foreign_type(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item) {
crate const BASIC_KEYWORDS: &str = "rust, rustlang, rust-lang";
fn make_item_keywords(it: &clean::Item) -> String {
format!("{}, {}", BASIC_KEYWORDS, it.name.as_ref().unwrap())
}
/// Returns a list of all paths used in the type.
/// This is used to help deduplicate imported impls