Skip to content

Commit

Permalink
build: update to rust 1.83
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian May committed Nov 29, 2024
1 parent 94b63c9 commit 29d3551
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/repos/helm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ impl Repo {
Ok(serde_yml::from_str::<Repo>(&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()
Expand All @@ -157,7 +157,7 @@ impl Repo {
version: &str,
cache: &Cache,
) -> Result<Chart, Error> {
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 {
Expand All @@ -166,7 +166,7 @@ impl Repo {
}

pub async fn get_by_meta(&self, meta: &Meta, cache: &Cache) -> Result<Chart, Error> {
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 {
Expand Down

0 comments on commit 29d3551

Please sign in to comment.