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 = [ 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() } }