apply clippy changes

This commit is contained in:
Chance 2024-12-06 16:57:52 -05:00 committed by BitSyndicate
parent ae62990e90
commit 2c389c356a
6 changed files with 12 additions and 6 deletions

View file

@ -14,6 +14,12 @@ pub struct DynamicLogger {
pub writer: Arc<Mutex<Box<dyn Write + Send>>>,
}
impl Default for DynamicLogger {
fn default() -> Self {
Self::new()
}
}
impl DynamicLogger {
pub fn new() -> Self {
Self {
@ -24,7 +30,7 @@ impl DynamicLogger {
pub fn write_to_file(&self, file_path: &str) {
let file = OpenOptions::new()
.create(true)
.write(true)
.append(true)
.open(file_path)
.expect("Failed to open log file");