Make Actor::handle_message take &str instead of &String

Fixes #5305
This commit is contained in:
Corey Farwell 2015-03-21 20:56:14 -04:00
parent 87af57cefc
commit 2764ec0f7b
5 changed files with 17 additions and 17 deletions

View file

@ -18,7 +18,7 @@ use rustc_serialize::json;
pub trait Actor: Any {
fn handle_message(&self,
registry: &ActorRegistry,
msg_type: &String,
msg_type: &str,
msg: &json::Object,
stream: &mut TcpStream) -> Result<bool, ()>;
fn name(&self) -> String;