mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user