Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump serde_yaml from 0.9.19 to 0.9.21 #17120

Merged
merged 3 commits into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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 @@ -193,7 +193,7 @@ serde-toml-merge = { version = "0.3.0", default-features = false }
serde_bytes = { version = "0.11.9", default-features = false, features = ["std"], optional = true }
serde_json = { version = "1.0.95", default-features = false, features = ["raw_value"] }
serde_with = { version = "2.3.2", default-features = false, features = ["macros", "std"] }
serde_yaml = { version = "0.9.19", default-features = false }
serde_yaml = { version = "0.9.21", default-features = false }

# Messagepack
rmp-serde = { version = "1.1.1", default-features = false, optional = true }
Expand Down
15 changes: 6 additions & 9 deletions lib/vector-buffers/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,21 +406,21 @@ mod test {
}
}

const BUFFER_CONFIG_NO_MATCH_ERR: &str =
"data did not match any variant of untagged enum BufferConfig";

#[test]
fn parse_empty() {
let source = "";
let error = serde_yaml::from_str::<BufferConfig>(source).unwrap_err();
assert_eq!(error.to_string(), "EOF while parsing a value");
assert_eq!(error.to_string(), BUFFER_CONFIG_NO_MATCH_ERR);
}

#[test]
fn parse_only_invalid_keys() {
let source = "foo: 314";
let error = serde_yaml::from_str::<BufferConfig>(source).unwrap_err();
assert_eq!(
error.to_string(),
"data did not match any variant of untagged enum BufferConfig"
);
assert_eq!(error.to_string(), BUFFER_CONFIG_NO_MATCH_ERR);
}

#[test]
Expand All @@ -429,10 +429,7 @@ mod test {
max_events: 42
"#;
let error = serde_yaml::from_str::<BufferConfig>(source).unwrap_err();
assert_eq!(
error.to_string(),
"data did not match any variant of untagged enum BufferConfig"
);
assert_eq!(error.to_string(), BUFFER_CONFIG_NO_MATCH_ERR);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion vdev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ regex = { version = "1.7.1", default-features = false, features = ["std", "perf"
reqwest = { version = "0.11", features = ["json", "blocking"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.95"
serde_yaml = "0.9.19"
serde_yaml = "0.9.21"
sha2 = "0.10.6"
tempfile = "3.5.0"
toml = { version = "0.7.2", default-features = false, features = ["parse"] }