summaryrefslogtreecommitdiffstats
path: root/src/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/io')
-rw-r--r--src/io/io_worker.rs11
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!(