From 26f472649af023ffe59f5f60af0cb4a8bec2b8c9 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 22 Aug 2018 11:12:06 -0700 Subject: [PATCH] default impl for fork method --- src/server_config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server_config.rs b/src/server_config.rs index 199f7123..0d333c01 100644 --- a/src/server_config.rs +++ b/src/server_config.rs @@ -2,7 +2,9 @@ use std::sync::{atomic::AtomicUsize, Arc}; pub trait Config: Send + Clone + Default + 'static { - fn fork(&self) -> Self; + fn fork(&self) -> Self { + self.clone() + } } #[derive(Clone, Default)]