riker-rs / riker

Easily build efficient, highly concurrent and resilient applications. An Actor Framework for Rust.
https://riker.rs
MIT License
1.02k stars 69 forks source link

Remove some uses of Box and clone #106

Closed hardliner66 closed 4 years ago

hardliner66 commented 4 years ago

I removed all the simple cases of Box and clone.

There are still many uses left which we probably could get rid of, but most of them require significantly more work and lifetime wizardry.

hardliner66 commented 4 years ago

persist.rs.zip

hardliner66 commented 4 years ago

i'm surprised clippy didn't suggest more of these

Maybe I'm doing something wrong, but clippy didn't show any of these. Just good old search all :)

But I did try to remove as much clone calls and Boxes as possible.

leenozara commented 4 years ago

I'm also surprised clippy didn't detect these. Great work to get this cleaned up.