79494375

Date: 2025-03-08 12:32:20
Score: 0.5
Natty:
Report link

you should also be able to use Rc::unwrap_or_clone.

Something like:

            EntryManagerAction::Add(text) => {
                let mut manager = Rc::unwrap_or_clone(self);
                manager.add_entry(text);
                manager.into()
            },
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2987504