1
0
Fork 0

Add a todo about parking_lot

This commit is contained in:
Robbert van der Helm 2022-01-30 17:10:42 +01:00
parent 486fc67a4b
commit 64cf04a77d

View file

@ -29,6 +29,8 @@ pub use serde_json::to_vec as serialize_field;
/// The functinoality needed for persisting a field to the plugin's state, and for restoring values
/// when loading old state.
///
/// TODO: Replace uses of standard library synchronization primitives with parking_lot's
pub trait PersistentField<'a, T>: Send + Sync
where
T: serde::Serialize + serde::Deserialize<'a>,