Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Feb 14, 2021
1 parent 8fe7d4f commit ef25592
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions snowchains_core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed

- Added a workaround for large process input/output.
- Followed [dtolnay/serde-yaml@ef99075](https://github.com/dtolnay/serde-yaml/commit/ef990758a19d4d845cf19a8943e7d905909cafd8).

## [0.8.1] - 2021-01-21Z

Expand Down
4 changes: 2 additions & 2 deletions snowchains_core/src/testsuite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ impl TestSuite {
fn key_value(key: impl Serialize, value: impl Serialize) -> serde_yaml::Result<String> {
let key = serde_yaml::to_value(key)?;
let mut acc = serde_yaml::to_string(&hashmap!(key => value))?;
debug_assert!(acc.starts_with("---\n"));
acc += "\n";
debug_assert!(acc.starts_with("---\n") && acc.ends_with('\n'));
Ok(acc.split_off(4))
}

Expand All @@ -123,6 +122,7 @@ impl TestSuite {
let mut acc = serde_yaml::to_string(&hashmap!(&key => serde_yaml::Value::Null))
.ok()?
.trim_start_matches("---\n")
.trim_end_matches('\n')
.trim_end_matches('~')
.to_owned();

Expand Down

0 comments on commit ef25592

Please sign in to comment.