Skip to content

Commit f8a7984

Browse files
committed
Renamings
1 parent 7283916 commit f8a7984

File tree

3 files changed

+90
-90
lines changed

3 files changed

+90
-90
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ doesn't do. `serde-json-fmt` lets you do that:
2424

2525
```rust
2626
use serde_json::json;
27-
use serde_json_fmt::JsonOptions;
27+
use serde_json_fmt::JsonFormat;
2828

2929
let value = json!({
3030
"colors": ["red", "blue", "taupe"],
@@ -35,7 +35,7 @@ let value = json!({
3535
}
3636
});
3737

38-
let s = JsonOptions::new()
38+
let s = JsonFormat::new()
3939
.comma(", ")
4040
.unwrap()
4141
.colon(": ")
@@ -55,7 +55,7 @@ indents and with all non-ASCII characters encoded as `\uXXXX` escape sequences.
5555

5656
```rust
5757
use serde_json::json;
58-
use serde_json_fmt::JsonOptions;
58+
use serde_json_fmt::JsonFormat;
5959

6060
let value = json!({
6161
"emojis": {
@@ -70,7 +70,7 @@ let value = json!({
7070
}
7171
});
7272

73-
let s = JsonOptions::pretty()
73+
let s = JsonFormat::pretty()
7474
.indent_width(Some(4))
7575
.ascii(true)
7676
.format_to_string(&value)

0 commit comments

Comments
 (0)