File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ fn generate_projects(path: PathBuf) {
151
151
"use crate::models::ProjectItem;\n pub const COMUNITY_PROJECTS: &[ProjectItem] = &[\n "
152
152
)
153
153
. unwrap ( ) ;
154
- for ( _c , _p, t) in projects {
154
+ for ( c , _p, t) in projects {
155
155
let ProjectItem {
156
156
name,
157
157
description,
@@ -167,6 +167,7 @@ fn generate_projects(path: PathBuf) {
167
167
r#"
168
168
ProjectItem {{
169
169
name: &{name:?},
170
+ category: "{c}",
170
171
description: "{description}",
171
172
link: "{link}",
172
173
brand_src: "{brand_src}",
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub struct CommunityItem {
8
8
}
9
9
pub struct ProjectItem {
10
10
pub name : & ' static [ & ' static str ] ,
11
+ pub category : & ' static str ,
11
12
pub description : & ' static str ,
12
13
pub link : & ' static str ,
13
14
pub brand_src : & ' static str ,
You can’t perform that action at this time.
0 commit comments