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

Perhaps error in example #49

Closed vchekan closed 5 years ago

vchekan commented 5 years ago

https://github.com/riker-rs/riker/blob/7c06e29bb0f717df9ab969501e905c6b4d019716/src/actor/props.rs#L33

Shouldn't it be Box::new(User {})? And the same problem in README.md

leenozara commented 5 years ago

Hi @vchekan thanks for checking. In this case it's not an error. User is a unit struct defined using struct User; without any fields and an instance can be created using just let x = User.