Skip to content

Commit

Permalink
Run rustfmt to Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Nov 5, 2024
1 parent 963372e commit ef8c28e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/types/command/impl_completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ impl CommandCompletion for Command {
"insensitive",
"sensitive",
]),
CMD_SET_DISPLAY_MODE => CompletionKind::Custom(vec![
"default", "minimal", "hsplit",
]),
CMD_SET_DISPLAY_MODE => CompletionKind::Custom(vec!["default", "minimal", "hsplit"]),
CMD_SET_LINEMODE => CompletionKind::Custom(vec![
"all", "group", "mtime", "none", "perm", "size", "user",
]),
Expand Down
6 changes: 3 additions & 3 deletions src/types/command/impl_from_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ impl std::str::FromStr for Command {
"minimal" => Ok(Self::SetDisplayMode(DisplayMode::Minimal)),
"hsplit" => Ok(Self::SetDisplayMode(DisplayMode::HSplit)),
_ => Err(AppError::new(
AppErrorKind::InvalidParameters,
format!("{}: Unknown option '{}'", command, arg),
))
AppErrorKind::InvalidParameters,
format!("{}: Unknown option '{}'", command, arg),
)),
}
} else if command == CMD_SET_LINEMODE {
Ok(Self::SetLineMode(LineMode::from_string(arg)?))
Expand Down

0 comments on commit ef8c28e

Please sign in to comment.