refactor: wip

This commit is contained in:
GyDi
2022-11-15 01:33:50 +08:00
parent c8e6f3a627
commit ee68d80d0a
4 changed files with 77 additions and 40 deletions

View File

@@ -3,7 +3,7 @@ use parking_lot::{MappedMutexGuard, Mutex, MutexGuard};
use serde_yaml::Mapping;
use std::sync::Arc;
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Draft<T: Clone + ToOwned> {
inner: Arc<Mutex<(T, Option<T>)>>,
}