mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix other warnings in devtools
This commit is contained in:
parent
d2e6985ef7
commit
b708453049
2 changed files with 4 additions and 4 deletions
|
@ -136,7 +136,7 @@ impl ActorRegistry {
|
|||
// fails for unknown reasons.
|
||||
/*let actor: &Actor+Send+Sized = *self.actors.find(&name.to_string()).unwrap();
|
||||
(actor as &Any).downcast_ref::<T>().unwrap()*/
|
||||
self.actors.find(&name.to_string()).unwrap().as_ref::<T>().unwrap()
|
||||
self.actors.find(&name.to_string()).unwrap().downcast_ref::<T>().unwrap()
|
||||
}
|
||||
|
||||
/// Find an actor by registered name
|
||||
|
@ -162,7 +162,7 @@ impl ActorRegistry {
|
|||
}
|
||||
}
|
||||
}
|
||||
let mut new_actors = replace(&mut *self.new_actors.borrow_mut(), vec!());
|
||||
let new_actors = replace(&mut *self.new_actors.borrow_mut(), vec!());
|
||||
for actor in new_actors.into_iter() {
|
||||
self.actors.insert(actor.name().to_string(), actor);
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ impl NodeInfoToProtocol for NodeInfo {
|
|||
publicId: self.publicId,
|
||||
systemId: self.systemId,
|
||||
|
||||
attrs: self.attrs.move_iter().map(|attr| {
|
||||
attrs: self.attrs.into_iter().map(|attr| {
|
||||
AttrMsg {
|
||||
namespace: attr.namespace,
|
||||
name: attr.name,
|
||||
|
@ -262,7 +262,7 @@ impl Actor for WalkerActor {
|
|||
let msg = ChildrenReply {
|
||||
hasFirst: true,
|
||||
hasLast: true,
|
||||
nodes: children.move_iter().map(|child| {
|
||||
nodes: children.into_iter().map(|child| {
|
||||
child.encode(registry, true)
|
||||
}).collect(),
|
||||
from: self.name(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue