diff options
author | Prince <princedaryl3@tutanota.com> | 2021-05-16 11:33:48 +0300 |
---|---|---|
committer | Prince <princedaryl3@tutanota.com> | 2021-05-16 11:33:48 +0300 |
commit | 5f76518f0ca7dbb86a1ef5323cb50421344d0eba (patch) | |
tree | e82a00c867255c2b369c43e0ab035636c7e0ea9d /src/io | |
parent | c5411aa2bfb16e325fd70447a48903b4978c0ab3 (diff) |
remove redundant Default implementation
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/io_worker.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/io/io_worker.rs b/src/io/io_worker.rs index 6e2180f..7ef0010 100644 --- a/src/io/io_worker.rs +++ b/src/io/io_worker.rs @@ -12,21 +12,12 @@ pub enum FileOp { Copy, } -#[derive(Clone, Debug)] +#[derive(Clone,Debug,Default)] pub struct IoWorkerOptions { pub overwrite: bool, pub skip_exist: bool, } -impl std::default::Default for IoWorkerOptions { - fn default() -> Self { - Self { - overwrite: false, - skip_exist: false, - } - } -} - impl std::fmt::Display for IoWorkerOptions { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { write!( |