From 1293b603e486d808436eaf376e0f8fef8bcc134b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:42:38 +0000 Subject: [PATCH 1/2] build(deps): update reqwest requirement from 0.11 to 0.12 Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest) to permit the latest version. - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.0...v0.12.0) --- updated-dependencies: - dependency-name: reqwest dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 42f19b2..2831d4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ oci-distribution = { version = "0.10.0", default-features = false, features = [ ] } path-slash = "0.2" regex = "1.5" -reqwest = { version = "0.11", default-features = false, features = [ +reqwest = { version = "0.12", default-features = false, features = [ "rustls-tls", ] } rustls = { version = "0.23", default-features = false, features = [ From ab1751978289333e086ab4d4de4b46e71861819a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Cuadrado=20Juan?= Date: Thu, 21 Mar 2024 17:04:21 +0100 Subject: [PATCH 2/2] chore: Make clippy happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: VĂ­ctor Cuadrado Juan --- src/sources.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sources.rs b/src/sources.rs index e37ba98..3c2e6b7 100644 --- a/src/sources.rs +++ b/src/sources.rs @@ -218,7 +218,7 @@ impl Sources { } pub fn source_authority(&self, host: &str) -> Option> { - self.source_authorities.0.get(host).map(Clone::clone) + self.source_authorities.0.get(host).cloned() } }