simplify Factory::de (typeless)

This commit is contained in:
AF 2023-07-01 14:47:11 +00:00
parent 6e64fd97e4
commit 664365ba72

View File

@ -131,7 +131,7 @@ where
'a: 'c, 'a: 'c,
{ {
self.deserialize(demoted) self.deserialize(demoted)
.map_err(|e| Box::new(e) as Box<dyn 'a + Error>) .map_err(|e| Box::new(e) as _)
.map(Rc::new) .map(Rc::new)
.map(TypelessMentionable::from_typed) .map(TypelessMentionable::from_typed)
} }