mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +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,
|
F: FnOnce(T::Model) -> V,
|
||||||
U: Serialize + for<'de> Deserialize<'de>,
|
U: Serialize + for<'de> Deserialize<'de>,
|
||||||
V: ModelFor<U>,
|
V: ModelFor<U>,
|
||||||
|
W: ModelFor<Option<U>>,
|
||||||
>(
|
>(
|
||||||
self,
|
self,
|
||||||
f: F,
|
f: F,
|
||||||
) -> Model<Option<U>> {
|
) -> W {
|
||||||
Into::<JsonPointer>::into(f(self.0)).into()
|
Into::<JsonPointer>::into(f(self.0)).into()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user