From 5f76518f0ca7dbb86a1ef5323cb50421344d0eba Mon Sep 17 00:00:00 2001 From: Prince Date: Sun, 16 May 2021 11:33:48 +0300 Subject: remove redundant Default implementation --- src/io/io_worker.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/io') 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!( -- cgit v1.2.3