Skip to content

Commit

Permalink
realpath: reformat using rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
niyaznigmatullin committed Jul 11, 2022
1 parent 0c58f57 commit 72fb3c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/uu/realpath/src/realpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ fn prepare_relative_options(
resolve_mode: ResolveMode,
) -> UResult<(Option<PathBuf>, Option<PathBuf>)> {
let relative_to = matches.value_of(OPT_RELATIVE_TO).map(PathBuf::from);
let relative_base = matches
.value_of(OPT_RELATIVE_BASE)
.map(PathBuf::from);
let relative_base = matches.value_of(OPT_RELATIVE_BASE).map(PathBuf::from);
let relative_to = canonicalize_relative_option(relative_to, can_mode, resolve_mode)?;
let relative_base = canonicalize_relative_option(relative_base, can_mode, resolve_mode)?;
if let (Some(base), Some(to)) = (relative_base.as_deref(), relative_to.as_deref()) {
Expand Down

0 comments on commit 72fb3c7

Please sign in to comment.