Skip to content

Commit

Permalink
fixed clippy: derivable_impls
Browse files Browse the repository at this point in the history
  • Loading branch information
aki-akaguma committed Jun 19, 2024
1 parent e5d02c5 commit 6ce65fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* `LICENSE-APACHE`, `LICENSE-MIT`
* license files
* clippy: `redundant_static_lifetimes`, `needless_borrow`, `bool_assert_comparison`
* clippy: `uninlined_format_args`, `unused_imports`, `dead_code`
* clippy: `uninlined_format_args`, `unused_imports`, `dead_code`, `derivable_impls`
* rust-version: "1.56.0" to "1.60.0"
* bug: file compare on windows
* bug: on macos:
Expand Down
9 changes: 2 additions & 7 deletions src/util/opt_uc_x_param.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
//{{{ OptUcXParam
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Default, Debug, Clone, PartialEq, Eq)]
pub enum OptUcXParam {
#[default]
Void,
Help,
RustVersionInfo,
BaseDir(String),
}

impl Default for OptUcXParam {
fn default() -> OptUcXParam {
OptUcXParam::Void
}
}

impl ::std::str::FromStr for OptUcXParam {
type Err = OptUcXParamParseError;
fn from_str(s: &str) -> Result<Self, Self::Err> {
Expand Down

0 comments on commit 6ce65fc

Please sign in to comment.