simplify Factory::de
(typeless
)
This commit is contained in:
parent
6e64fd97e4
commit
664365ba72
@ -131,7 +131,7 @@ where
|
||||
'a: 'c,
|
||||
{
|
||||
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(TypelessMentionable::from_typed)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user