chore: address Rust 1.88.0 clippy lints (#8498)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2025-07-02 12:13:07 +05:30
committed by GitHub
parent ad29631c53
commit 20b52f11c3
150 changed files with 464 additions and 647 deletions

View File

@ -25,14 +25,14 @@ fn main() {
let toml_contents = match std::fs::read_to_string(toml_file) {
Ok(contents) => contents,
Err(e) => {
eprintln!("Error reading TOML file: {}", e);
eprintln!("Error reading TOML file: {e}");
return;
}
};
let toml_data: Value = match toml_contents.parse() {
Ok(data) => data,
Err(e) => {
eprintln!("Error parsing TOML file: {}", e);
eprintln!("Error parsing TOML file: {e}");
return;
}
};
@ -42,14 +42,14 @@ fn main() {
let input = match input_file::InputData::read(table) {
Ok(data) => data,
Err(e) => {
eprintln!("Error loading TOML file: {}", e);
eprintln!("Error loading TOML file: {e}");
return;
}
};
let db_url = input.postgres_url();
println!("Attempting to connect to {}", db_url);
println!("Attempting to connect to {db_url}");
let mut conn = match PgConnection::establish(&db_url) {
Ok(value) => value,