From 29d35514d395ab78daf27300b9fcb853cd706633 Mon Sep 17 00:00:00 2001 From: Brian May Date: Fri, 29 Nov 2024 11:48:52 +1100 Subject: [PATCH] build: update to rust 1.83 --- flake.lock | 6 +++--- src/repos/helm.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index 2f10c58..d2e94a2 100644 --- a/flake.lock +++ b/flake.lock @@ -78,11 +78,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1732588352, - "narHash": "sha256-J2/hxOO1VtBA/u+a+9E+3iJpWT3xsBdghgYAVfoGCJo=", + "lastModified": 1732802692, + "narHash": "sha256-kFrxb45qj52TT/OFUFyTdmvXkn/KXDUL0/DOtjHEQvs=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "414e748aae5c9e6ca63c5aafffda03e5dad57ceb", + "rev": "34971069ec33755b2adf2481851f66d8ec9a6bfa", "type": "github" }, "original": { diff --git a/src/repos/helm.rs b/src/repos/helm.rs index e8d2055..1459b3f 100644 --- a/src/repos/helm.rs +++ b/src/repos/helm.rs @@ -137,14 +137,14 @@ impl Repo { Ok(serde_yml::from_str::(&text)?) } - fn _get_by_version(&self, name: &str, version: &str) -> Option<&Entry> { + fn internal_get_by_version(&self, name: &str, version: &str) -> Option<&Entry> { self.entries .get(name)? .iter() .find(|e| e.version == version) } - fn _get_by_sha256(&self, name: &str, expected_hash: &Sha256Hash) -> Option<&Entry> { + fn internal_get_by_sha256(&self, name: &str, expected_hash: &Sha256Hash) -> Option<&Entry> { self.entries .get(name)? .iter() @@ -157,7 +157,7 @@ impl Repo { version: &str, cache: &Cache, ) -> Result { - let entry = self._get_by_version(name, version); + let entry = self.internal_get_by_version(name, version); if let Some(entry) = entry { Ok(entry.download_chart(cache, None).await?) } else { @@ -166,7 +166,7 @@ impl Repo { } pub async fn get_by_meta(&self, meta: &Meta, cache: &Cache) -> Result { - let entry = self._get_by_sha256(&meta.name, &meta.sha256_hash); + let entry = self.internal_get_by_sha256(&meta.name, &meta.sha256_hash); if let Some(entry) = entry { Ok(entry.download_chart(cache, Some(meta.size)).await?) } else {