aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools/actor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/devtools/actor.rs')
-rw-r--r--components/devtools/actor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/devtools/actor.rs b/components/devtools/actor.rs
index c439ad0e028..6d2e4ab1869 100644
--- a/components/devtools/actor.rs
+++ b/components/devtools/actor.rs
@@ -153,12 +153,12 @@ impl ActorRegistry {
msg: &BTreeMap<String, Value>,
stream: &mut TcpStream)
-> Result<(), ()> {
- let to = msg.get("to").unwrap().as_string().unwrap();
+ let to = msg.get("to").unwrap().as_str().unwrap();
match self.actors.get(to) {
None => debug!("message received for unknown actor \"{}\"", to),
Some(actor) => {
- let msg_type = msg.get("type").unwrap().as_string().unwrap();
+ let msg_type = msg.get("type").unwrap().as_str().unwrap();
if try!(actor.handle_message(self, msg_type, msg, stream))
!= ActorMessageStatus::Processed {
debug!("unexpected message type \"{}\" found for actor \"{}\"",