mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
chore: address Rust 1.78 clippy lints (#4545)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -63,7 +63,7 @@ fn get_dir_path(name: impl AsRef<str>) -> String {
|
||||
|
||||
// This function currently allows you to add only custom headers.
|
||||
// In future, as we scale, this can be modified based on the need
|
||||
fn insert_content<T, U>(dir: T, content_to_insert: U) -> std::io::Result<()>
|
||||
fn insert_content<T, U>(dir: T, content_to_insert: U) -> io::Result<()>
|
||||
where
|
||||
T: AsRef<Path>,
|
||||
U: AsRef<str>,
|
||||
@ -72,7 +72,7 @@ where
|
||||
let file_path = dir.as_ref().join(file_name);
|
||||
|
||||
// Open the file in write mode or create it if it doesn't exist
|
||||
let mut file = std::fs::OpenOptions::new()
|
||||
let mut file = OpenOptions::new()
|
||||
.append(true)
|
||||
.create(true)
|
||||
.open(file_path)?;
|
||||
|
||||
Reference in New Issue
Block a user