Skip to content

Commit

Permalink
Fix formatting in main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ykdy3951 committed Mar 7, 2024
1 parent 6a51cf3 commit dddb111
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use commands::{handle_command, Commands};

use std::env;

const CLLM : &str = r#"
const CLLM: &str = r#"
_____ _____
( ___ )---------------------------------------------( ___ )
| | | |
Expand Down Expand Up @@ -53,13 +53,16 @@ async fn main() {
}
}
if env::args().collect::<Vec<String>>().len() == 1 {
println!("{}\n Welcome to CLLM! Try running `cllm --help` to get started.\n", CLLM);
println!(
"{}\n Welcome to CLLM! Try running `cllm --help` to get started.\n",
CLLM
);
return;
}

// Parse the command line arguments
let cli = Cli::parse();

if let Err(_error) = handle_command(cli.commands).await {
println!("\n\nError Occurred\n{}", _error.to_string());

Check warning on line 67 in src/main.rs

View workflow job for this annotation

GitHub Actions / Clippy Output

`to_string` applied to a type that implements `Display` in `println!` args

warning: `to_string` applied to a type that implements `Display` in `println!` args --> src/main.rs:67:50 | 67 | println!("\n\nError Occurred\n{}", _error.to_string()); | ^^^^^^^^^^^^ help: remove this | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args = note: `#[warn(clippy::to_string_in_format_args)]` on by default
}
Expand Down

0 comments on commit dddb111

Please sign in to comment.