Skip to content

Commit e7fd884

Browse files
committed
cargo fmt
1 parent 727f848 commit e7fd884

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use crate::parser::{Error, Position};
33
#[cfg(not(feature = "std"))]
44
extern crate alloc;
55

6-
#[cfg(not(feature = "std"))]
7-
use alloc::vec::Vec;
86
#[cfg(not(feature = "std"))]
97
use crate::parser::alloc::fmt::Formatter;
8+
#[cfg(not(feature = "std"))]
9+
use alloc::vec::Vec;
1010

1111
#[cfg_attr(feature = "std", derive(Debug))]
1212
#[derive(Copy, Clone, Default, PartialEq, Eq)]

src/lib.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ mod tests {
2222
assert_eq!(
2323
parse_json(&r#"{ "test": 1, "test2": [1e-4, 2.041e2, true, false, null, "\"1\n\""] }"#),
2424
Ok(JsonValue::Object(vec![
25-
(vec!['t', 'e', 's', 't'], JsonValue::Number(NumberValue {
26-
integer: 1,
27-
fraction: 0,
28-
fraction_length: 0,
29-
exponent: 0
30-
})),
25+
(
26+
vec!['t', 'e', 's', 't'],
27+
JsonValue::Number(NumberValue {
28+
integer: 1,
29+
fraction: 0,
30+
fraction_length: 0,
31+
exponent: 0
32+
})
33+
),
3134
(
3235
vec!['t', 'e', 's', 't', '2'],
3336
JsonValue::Array(vec![

0 commit comments

Comments
 (0)