From e8adf7a56aba3bb3f9dd031dfea8025856825b55 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:04:09 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/file.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/file.rs b/src/file.rs index 6225a4d..adc7337 100644 --- a/src/file.rs +++ b/src/file.rs @@ -2,7 +2,7 @@ use std::{ cmp::min, fs::{FileTimes, OpenOptions}, io::{Read, Seek, Write}, - mem::drop + mem::drop, }; use chrono::{DateTime, Utc}; @@ -26,7 +26,11 @@ impl<'a> FileReader { let mut file = OpenOptions::new().read(true).open(path).unwrap(); file.rewind().unwrap(); - Self { path: path.to_owned(), file, pos: 0 } + Self { + path: path.to_owned(), + file, + pos: 0, + } } pub fn close(self) { @@ -201,7 +205,11 @@ impl<'a> FileWriter { .unwrap(); file.rewind().unwrap(); - Self { path: path.to_owned(), file, pos: 0 } + Self { + path: path.to_owned(), + file, + pos: 0, + } } pub fn close(self) {