1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-19 07:24:38 +00:00

Fix rustfmt and clippy issues

- Add missing newlines at end of files
- Remove trailing whitespace
- Use next_back() instead of last() for DoubleEndedIterator
- Use &Path instead of &PathBuf for function parameter

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-06-07 20:51:47 -04:00
parent 5e89023925
commit 2cf7ab1c17
Failed to extract signature
3 changed files with 15 additions and 17 deletions

View file

@ -87,19 +87,19 @@ impl RegistryClient {
.context("Failed to push manifest")?;
info!("Successfully pushed image to {}", manifest_url);
// Extract digest from the manifest URL
// URL format: https://registry/v2/repo/manifests/sha256:digest
let digest = manifest_url
.split('/')
.last()
.next_back()
.context("Failed to extract digest from manifest URL")?;
// Build the full image reference with digest
let registry = reference.registry();
let repository = reference.repository();
let digest_ref = format!("{}/{}@{}", registry, repository, digest);
Ok(digest_ref)
}
}