Skip to content

Commit

Permalink
Updated version of serde_yaml to 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghav-Bell authored and sharkdp committed Oct 4, 2023
1 parent 9f795dd commit 8e35a56
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- Fix `more` not being found on Windows when provided via `BAT_PAGER`, see #2570, #2580, and #2651 (@mataha)
- Switched default behavior of `--map-syntax` to be case insensitive #2520

- Updated version of `serde_yaml` to `0.9`. See #2627 (@Raghav-Bell)
## Other

- Output directory for generated assets (completion, manual) can be customized, see #2515 (@tranzystorek-io)
Expand Down
43 changes: 36 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ shell-words = { version = "1.1.0", optional = true }
unicode-width = "0.1.10"
globset = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.8"
serde_yaml = "0.9"
semver = "1.0"
path_abs = { version = "0.5", default-features = false }
clircle = "0.4"
Expand Down
3 changes: 2 additions & 1 deletion examples/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ fn main() {
}],
};

let bytes = serde_yaml::to_vec(&person).unwrap();
let mut bytes = Vec::with_capacity(128);
serde_yaml::to_writer(&mut bytes, &person).unwrap();
PrettyPrinter::new()
.language("yaml")
.line_numbers(true)
Expand Down

0 comments on commit 8e35a56

Please sign in to comment.