Skip to content

Commit

Permalink
Make clippy and cargo-deny happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Dec 18, 2024
1 parent aff36f1 commit 06dc1d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

8 changes: 5 additions & 3 deletions src/docker/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,11 @@ impl ImagePlatform {

/// Returns a string that can be used in codegen to represent this platform
pub fn to_codegen_string(&self) -> Option<&'static str> {
match *self {
Self::X86_64_UNKNOWN_LINUX_GNU => Some("ImagePlatform::X86_64_UNKNOWN_LINUX_GNU"),
Self::AARCH64_UNKNOWN_LINUX_GNU => Some("ImagePlatform::AARCH64_UNKNOWN_LINUX_GNU"),
match self.target {
TargetTriple::X86_64UnknownLinuxGnu => Some("ImagePlatform::X86_64_UNKNOWN_LINUX_GNU"),
TargetTriple::Aarch64UnknownLinuxGnu => {
Some("ImagePlatform::AARCH64_UNKNOWN_LINUX_GNU")
}
_ => None,
}
}
Expand Down

0 comments on commit 06dc1d1

Please sign in to comment.