Skip to content

Commit 7a38329

Browse files
committed
Field shorthands aren't stable in released Rust yet
1 parent 255616f commit 7a38329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ fn mock_keyword(req: &mut Request, name: &str) -> Keyword {
277277
}
278278

279279
fn new_category<'a>(category: &'a str, slug: &'a str) -> NewCategory<'a> {
280-
NewCategory { category, slug, ..NewCategory::default() }
280+
NewCategory { category: category, slug: slug, ..NewCategory::default() }
281281
}
282282

283283
fn mock_category(req: &mut Request, name: &str, slug: &str) -> Category {

0 commit comments

Comments
 (0)