Skip to content

Commit ba6d437

Browse files
committed
refactor: avoid clap::error::Error imports
1 parent 4188345 commit ba6d437

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/uu/uniq/src/uniq.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
// file that was distributed with this source code.
55
// spell-checker:ignore badoption CTYPE
66
use clap::{
7-
Arg, ArgAction, ArgMatches, Command, builder::ValueParser, error::ContextKind, error::Error,
8-
error::ErrorKind,
7+
Arg, ArgAction, ArgMatches, Command, builder::ValueParser, error::ContextKind, error::ErrorKind,
98
};
109
use std::ffi::{OsStr, OsString};
1110
use std::fs::File;
@@ -606,7 +605,7 @@ fn handle_extract_obs_skip_chars(
606605
/// Unfortunately these overrides are necessary, since several GNU tests
607606
/// for `uniq` hardcode and require the exact wording of the error message
608607
/// and it is not compatible with how Clap formats and displays those error messages.
609-
fn map_clap_errors(clap_error: Error) -> Box<dyn UError> {
608+
fn map_clap_errors(clap_error: clap::error::Error) -> Box<dyn UError> {
610609
let footer = translate!("uniq-error-try-help");
611610
let override_arg_conflict = translate!("uniq-error-group-mutually-exclusive") + "\n" + &footer;
612611
let override_group_badoption = translate!("uniq-error-group-badoption") + "\n" + &footer;

0 commit comments

Comments
 (0)