Skip to content

Commit 28c25ac

Browse files
committed
Update test to use serde json features
1 parent dcca130 commit 28c25ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/views/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ mod tests {
212212
use super::*;
213213
use chrono::NaiveDate;
214214
use serde_json;
215-
use std::collections::HashMap;
216215

217216
#[test]
218217
fn category_dates_serializes_to_rfc3339() {
@@ -278,7 +277,7 @@ mod tests {
278277
updated_at: NaiveDate::from_ymd(2017, 1, 6).and_hms(14, 23, 11),
279278
created_at: NaiveDate::from_ymd(2017, 1, 6).and_hms(14, 23, 12),
280279
downloads: 0,
281-
features: HashMap::new(),
280+
features: serde_json::from_str("{}").unwrap(),
282281
yanked: false,
283282
license: None,
284283
links: EncodableVersionLinks {

0 commit comments

Comments
 (0)