Skip to content

Commit

Permalink
Fix some clippy::pedantic lints
Browse files Browse the repository at this point in the history
  • Loading branch information
catuhana committed Jul 4, 2024
1 parent f8b5796 commit 1a60cde
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cli/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ impl NueCommand for CommandArguments {
impl std::fmt::Display for VersionInputs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::VersionString(version) => write!(f, "{}", version),
Self::VersionString(version) => write!(f, "{version}"),
Self::Latest => write!(f, "latest"),
Self::Lts(Some(code_name)) => write!(f, "{}", code_name),
Self::Lts(Some(code_name)) => write!(f, "{code_name}"),
Self::Lts(None) => write!(f, "lts"),
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/cli/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ impl NueCommand for CommandArguments {
impl std::fmt::Display for VersionInputs {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::VersionString(version) => write!(f, "{}", version),
Self::VersionString(version) => write!(f, "{version}"),
Self::All => write!(f, "all"),
Self::Lts(Some(code_name)) => write!(f, "{}", code_name),
Self::Lts(Some(code_name)) => write!(f, "{code_name}"),
Self::Lts(None) => write!(f, "lts"),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/node/lts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl NodeLTS {
impl std::fmt::Display for NodeLTS {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::CodeName(code_name) => write!(f, "{}", code_name),
Self::CodeName(code_name) => write!(f, "{code_name}"),
Self::Bool(false) => write!(f, "false"),
Self::Bool(true) => write!(f, "how?"),
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/platforms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl Platform {
impl std::fmt::Display for Platform {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Linux(arch) => write!(f, "linux-{}", arch),
Self::Linux(arch) => write!(f, "linux-{arch}"),
}
}
}
Expand Down

0 comments on commit 1a60cde

Please sign in to comment.