From 92e18134be44711bc44cf973ce42b91a692ca4cc Mon Sep 17 00:00:00 2001 From: "oxide-renovate[bot]" <146848827+oxide-renovate[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:39:04 -0700 Subject: [PATCH] chore(deps): update rust crate tough to 0.17.1 (#5416) Co-authored-by: Rain --- Cargo.lock | 15 +++++++-------- Cargo.toml | 2 +- .../src/artifacts/artifacts_with_plan.rs | 2 +- update-common/src/errors.rs | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bd663e5d40..25b78e35b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8960,11 +8960,10 @@ dependencies = [ [[package]] name = "snafu" -version = "0.7.5" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4de37ad025c587a29e8f3f5605c00f70b98715ef90b9061a815b9e59e9042d6" +checksum = "75976f4748ab44f6e5332102be424e7c2dc18daeaf7e725f2040c3ebb133512e" dependencies = [ - "doc-comment", "futures-core", "pin-project", "snafu-derive", @@ -8972,14 +8971,14 @@ dependencies = [ [[package]] name = "snafu-derive" -version = "0.7.5" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "990079665f075b699031e9c08fd3ab99be5029b96f3b78dc0709e8f77e4efebf" +checksum = "b4b19911debfb8c2fb1107bc6cb2d61868aaf53a988449213959bb1b5b1ed95f" dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.52", ] [[package]] @@ -9992,9 +9991,9 @@ checksum = "ea68304e134ecd095ac6c3574494fc62b909f416c4fca77e440530221e549d3d" [[package]] name = "tough" -version = "0.16.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49455926f64001de53ef047c2053e2f17440e412b8b1e958d4ad8a6008db7128" +checksum = "b8d7a87d51ca5a113542e1b9f5ee2b14b6864bf7f34d103740086fa9c3d57d3b" dependencies = [ "async-recursion", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 06597147af..6fdea73083 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -428,7 +428,7 @@ tokio-tungstenite = "0.20" tokio-util = { version = "0.7.10", features = ["io", "io-util"] } toml = "0.8.12" toml_edit = "0.22.9" -tough = { version = "0.16.0", features = [ "http" ] } +tough = { version = "0.17.1", features = [ "http" ] } trust-dns-client = "0.22" trust-dns-proto = "0.22" trust-dns-resolver = "0.22" diff --git a/update-common/src/artifacts/artifacts_with_plan.rs b/update-common/src/artifacts/artifacts_with_plan.rs index c2be69e82e..950e2c5ab7 100644 --- a/update-common/src/artifacts/artifacts_with_plan.rs +++ b/update-common/src/artifacts/artifacts_with_plan.rs @@ -207,7 +207,7 @@ impl ArtifactsWithPlan { .find_target(&target_name) .map_err(|error| RepositoryError::TargetHashRead { target: artifact.target.clone(), - error, + error: Box::new(error), })? .hashes .sha256 diff --git a/update-common/src/errors.rs b/update-common/src/errors.rs index 4d992e70b2..0d65312c56 100644 --- a/update-common/src/errors.rs +++ b/update-common/src/errors.rs @@ -53,7 +53,7 @@ pub enum RepositoryError { TargetHashRead { target: String, #[source] - error: tough::schema::Error, + error: Box, }, #[error("target hash `{}` expected to be 32 bytes long, was {}", hex::encode(.0), .0.len())]