Skip to content

Commit

Permalink
Use .. instead double _
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonmx committed Jan 29, 2024
1 parent 81c5e95 commit d58fb07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@ pub fn handle(
}
(
cli::Args { skeleton_config: Some(_), file_path: Some(_), .. },
_,
_,
..,
) => error_action("Unable to decide between skeleton and file.")?,
(cli::Args { skeleton_config: Some(_), .. }, false, _) => error_action(
"Unable to decide between skeleton and standard input.",
)?,
(cli::Args { file_path: Some(_), .. }, false, _) => {
error_action("Unable to decide between file and standard input.")?
}
(cli::Args { skeleton_config: None, .. }, _, _) => {
(cli::Args { skeleton_config: None, .. }, ..) => {
stdin_to_stdout(&args.inputs, args.verbose)?
}
}
Expand Down

0 comments on commit d58fb07

Please sign in to comment.