mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +00:00
fix map api
This commit is contained in:
committed by
Aiden McClelland
parent
e9792f7afe
commit
b7c8ee67bd
@@ -244,10 +244,11 @@ impl<T: HasModel + Serialize + for<'de> Deserialize<'de>> OptionModel<T> {
|
||||
F: FnOnce(T::Model) -> V,
|
||||
U: Serialize + for<'de> Deserialize<'de>,
|
||||
V: ModelFor<U>,
|
||||
W: ModelFor<Option<U>>,
|
||||
>(
|
||||
self,
|
||||
f: F,
|
||||
) -> Model<Option<U>> {
|
||||
) -> W {
|
||||
Into::<JsonPointer>::into(f(self.0)).into()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user