From 65ac5a1fb4c3079b2b9e1511768a04539334540e Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 21 Sep 2021 17:22:51 -0600 Subject: [PATCH] fix map api --- patch-db/src/model.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patch-db/src/model.rs b/patch-db/src/model.rs index 007ad29..0b27ca3 100644 --- a/patch-db/src/model.rs +++ b/patch-db/src/model.rs @@ -244,10 +244,11 @@ impl Deserialize<'de>> OptionModel { F: FnOnce(T::Model) -> V, U: Serialize + for<'de> Deserialize<'de>, V: ModelFor, + W: ModelFor>, >( self, f: F, - ) -> Model> { + ) -> W { Into::::into(f(self.0)).into() }