mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 00:01:11 +01:00
default impl for fork method
This commit is contained in:
parent
29490e6c13
commit
26f472649a
@ -2,7 +2,9 @@
|
|||||||
use std::sync::{atomic::AtomicUsize, Arc};
|
use std::sync::{atomic::AtomicUsize, Arc};
|
||||||
|
|
||||||
pub trait Config: Send + Clone + Default + 'static {
|
pub trait Config: Send + Clone + Default + 'static {
|
||||||
fn fork(&self) -> Self;
|
fn fork(&self) -> Self {
|
||||||
|
self.clone()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
|
Loading…
Reference in New Issue
Block a user