From d6f26254ac1fecbf8c88c275ebd93e107386e740 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Apr 2023 08:50:00 -0600 Subject: [PATCH] chore(deps): bump serde_yaml from 0.9.19 to 0.9.21 (#17120) Signed-off-by: dependabot[bot] --- Cargo.lock | 10 +++++----- Cargo.toml | 2 +- lib/vector-buffers/src/config.rs | 15 ++++++--------- vdev/Cargo.toml | 2 +- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 56eaf490251f3..1a13dd699e68b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7525,9 +7525,9 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.9.19" +version = "0.9.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82e6c8c047aa50a7328632d067bcae6ef38772a79e28daf32f735e0e4f3dd10" +checksum = "d9d684e3ec7de3bf5466b32bd75303ac16f0736426e5a4e0d6e489559ce1249c" dependencies = [ "indexmap", "itoa", @@ -9150,7 +9150,7 @@ dependencies = [ "reqwest", "serde", "serde_json", - "serde_yaml 0.9.19", + "serde_yaml 0.9.21", "sha2 0.10.6", "tempfile", "toml 0.7.3", @@ -9303,7 +9303,7 @@ dependencies = [ "serde_bytes", "serde_json", "serde_with 2.3.2", - "serde_yaml 0.9.19", + "serde_yaml 0.9.21", "sha2 0.10.6", "similar-asserts", "smallvec", @@ -9410,7 +9410,7 @@ dependencies = [ "rand 0.8.5", "rkyv", "serde", - "serde_yaml 0.9.19", + "serde_yaml 0.9.21", "snafu", "temp-dir", "tokio", diff --git a/Cargo.toml b/Cargo.toml index 775ace26dc30b..31319090a1ec7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } diff --git a/lib/vector-buffers/src/config.rs b/lib/vector-buffers/src/config.rs index 552daf68ccafa..67a1994c3bb6d 100644 --- a/lib/vector-buffers/src/config.rs +++ b/lib/vector-buffers/src/config.rs @@ -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::(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::(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] @@ -429,10 +429,7 @@ mod test { max_events: 42 "#; let error = serde_yaml::from_str::(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] diff --git a/vdev/Cargo.toml b/vdev/Cargo.toml index f81a166f44de3..e1534b8f52d34 100644 --- a/vdev/Cargo.toml +++ b/vdev/Cargo.toml @@ -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"] }