Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSackerberg committed Mar 4, 2024
1 parent a29b8ce commit 2d211d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/show/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,23 @@ pub fn process_show(args: ShowArgs) -> Result<()> {
} else {
style(config_line_settings.prefix_name.as_str())
};
print_with_style(" ", "prefix_name", &prefix_name.to_string());
print_with_style(" ", "prefix_name", prefix_name.to_string());
print_with_style(
" ",
"name_length",
&config_line_settings.name_length.to_string(),
config_line_settings.name_length.to_string(),
);

let prefix_uri = if config_line_settings.prefix_uri.is_empty() {
style("<empty>").dim()
} else {
style(config_line_settings.prefix_uri.as_str())
};
print_with_style(" ", "prefix_uri", &prefix_uri.to_string());
print_with_style(" ", "prefix_uri", prefix_uri.to_string());
print_with_style(
" ",
"uri_length",
&config_line_settings.uri_length.to_string(),
config_line_settings.uri_length.to_string(),
);
print_with_style(
" ",
Expand Down

0 comments on commit 2d211d7

Please sign in to comment.