diff options
author | Kornel <kornel@geekhood.net> | 2020-02-18 17:32:28 +0000 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2020-02-18 17:32:28 +0000 |
commit | 97f4a6795490639ebd2e0e621921f7eadf00e47b (patch) | |
tree | 6197702e446dfa15e5713508a0f3f260f9ad6221 /crate_db/src/lib_crate_db.rs | |
parent | 16447611965c75f140fa67c946a2fb5c5c853080 (diff) |
Explicitly set/override bad crate categories
Diffstat (limited to 'crate_db/src/lib_crate_db.rs')
-rw-r--r-- | crate_db/src/lib_crate_db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crate_db/src/lib_crate_db.rs b/crate_db/src/lib_crate_db.rs index b8dcce8..879bd6b 100644 --- a/crate_db/src/lib_crate_db.rs +++ b/crate_db/src/lib_crate_db.rs @@ -48,7 +48,7 @@ pub struct CrateVersionData<'a> { pub is_build: bool, pub is_dev: bool, pub authors: &'a [rich_crate::Author], - pub category_slugs: Vec<Cow<'a, str>>, + pub category_slugs: &'a [Cow<'a, str>], pub repository: Option<&'a Repo>, pub readme_text: Option<String>, } @@ -1152,7 +1152,7 @@ categories = ["1", "two", "GAMES", "science", "::science::math::"] is_build: false, is_dev: false, authors: &[], - category_slugs: Vec::new(), + category_slugs: &[], repository: None, readme_text: None, }).unwrap(); |