Skip to content

Commit

Permalink
Remove provided methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Sep 2, 2024
1 parent 712b22e commit 6ac1a76
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pineappl_cli/src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ struct MoreArgs {
}

impl FromArgMatches for MoreArgs {
fn from_arg_matches(_: &ArgMatches) -> Result<Self, Error> {
unreachable!()
}

fn from_arg_matches_mut(matches: &mut ArgMatches) -> Result<Self, Error> {
fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> {
let mut matches = matches.clone();
let mut args = Vec::new();
let ids: Vec<_> = matches.ids().map(|id| id.as_str().to_owned()).collect();

Expand Down Expand Up @@ -256,10 +253,6 @@ impl FromArgMatches for MoreArgs {
fn update_from_arg_matches(&mut self, _: &ArgMatches) -> Result<(), Error> {
unreachable!()
}

fn update_from_arg_matches_mut(&mut self, _: &mut ArgMatches) -> Result<(), Error> {
unreachable!()
}
}

impl Args for MoreArgs {
Expand Down

0 comments on commit 6ac1a76

Please sign in to comment.