Skip to content

Commit 266cef6

Browse files
committed
feature: serde-json → serde_json
1 parent 4cd62ca commit 266cef6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/tests/filters.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn test_json() {
193193
);
194194
}
195195

196-
#[cfg(feature = "serde-json")]
196+
#[cfg(feature = "serde_json")]
197197
#[derive(Template)]
198198
#[template(
199199
source = r#"{
@@ -207,7 +207,7 @@ struct PrettyJsonTemplate<'a> {
207207
bar: &'a Value,
208208
}
209209

210-
#[cfg(feature = "serde-json")]
210+
#[cfg(feature = "serde_json")]
211211
#[test]
212212
fn test_pretty_json() {
213213
let val = json!({"arr": [ "one", 2, true, null ]});
@@ -232,15 +232,15 @@ fn test_pretty_json() {
232232
);
233233
}
234234

235-
#[cfg(feature = "serde-json")]
235+
#[cfg(feature = "serde_json")]
236236
#[derive(Template)]
237237
#[template(source = r#"{{ bar|json(indent)|safe }}"#, ext = "txt")]
238238
struct DynamicJsonTemplate<'a> {
239239
bar: &'a Value,
240240
indent: Option<&'a str>,
241241
}
242242

243-
#[cfg(feature = "serde-json")]
243+
#[cfg(feature = "serde_json")]
244244
#[test]
245245
fn test_dynamic_json() {
246246
let val = json!({"arr": ["one", 2]});

0 commit comments

Comments
 (0)