Skip to content

Commit

Permalink
Merge pull request ReFirmLabs#781 from ReFirmLabs/clippy_fix
Browse files Browse the repository at this point in the history
Fix clippy errors in display.rs
  • Loading branch information
devttys0 authored Nov 29, 2024
2 parents e99250e + 1449472 commit 9bc9ccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn line_delimiter() -> String {
delim
}

fn center_text(text: &String) -> String {
fn center_text(text: &str) -> String {
let mut padding_width: i32;
let mut centered_string: String = "".to_string();

Expand Down Expand Up @@ -95,7 +95,7 @@ fn line_wrap(text: &str, prefix_size: usize) -> String {

formatted_string = formatted_string + &this_line;

return formatted_string.trim().to_string();
formatted_string.trim().to_string()
}

fn print_column_headers(col1: &str, col2: &str, col3: &str) {
Expand All @@ -113,7 +113,7 @@ fn print_delimiter() {
println!("{}", line_delimiter().bold().bright_blue());
}

fn print_header(title_text: &String) {
fn print_header(title_text: &str) {
println!();
println!("{}", center_text(title_text).bold().magenta());
print_delimiter();
Expand Down

0 comments on commit 9bc9ccf

Please sign in to comment.