Skip to content

Commit

Permalink
fix: cargo clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Dec 25, 2024
1 parent 74d0605 commit 197f7d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "amp-common"
description = "Rust libraries shared across Amphitheatre components and libraries"
version = "0.9.4"
version = "0.9.5"
edition = "2021"
license = "Apache-2.0"
homepage = "https://amphitheatre.app"
Expand All @@ -24,7 +24,7 @@ oci-distribution = { version = "0.11.0", default-features = false, features = ["
schemars = "0.8.16"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
thiserror = "2.0.3"
thiserror = "2.0.9"
toml = "0.8.12"
tracing = "0.1.40"
ureq = { version = "2.9.6", features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion src/filesystem/finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl<'a> Finder<'a> {
}
}

impl<'a> Default for Finder<'a> {
impl Default for Finder<'_> {
fn default() -> Self {
Self::new()
}
Expand Down
2 changes: 1 addition & 1 deletion src/schema/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct Build {

impl Build {
pub fn env(&self) -> Option<Vec<EnvVar>> {
return self.env.as_ref().map(to_env_var);
self.env.as_ref().map(to_env_var)
}

pub fn method(&self) -> BuildMethod {
Expand Down
2 changes: 1 addition & 1 deletion src/schema/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub struct Deploy {
/// Helpers for Kubernetes resources.
impl Deploy {
pub fn env(&self) -> Option<Vec<EnvVar>> {
return self.env.as_ref().map(to_env_var);
self.env.as_ref().map(to_env_var)
}

pub fn container_ports(&self) -> Option<Vec<ContainerPort>> {
Expand Down

0 comments on commit 197f7d8

Please sign in to comment.