mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix existing syntactics nits.
This commit is contained in:
parent
7f935f010b
commit
8bb853f643
93 changed files with 393 additions and 397 deletions
|
@ -86,8 +86,8 @@ impl Actor + Send {
|
|||
|
||||
/// A list of known, owned actors.
|
||||
pub struct ActorRegistry {
|
||||
actors: HashMap<String, Box<Actor+Send>>,
|
||||
new_actors: RefCell<Vec<Box<Actor+Send>>>,
|
||||
actors: HashMap<String, Box<Actor + Send>>,
|
||||
new_actors: RefCell<Vec<Box<Actor + Send>>>,
|
||||
old_actors: RefCell<Vec<String>>,
|
||||
script_actors: RefCell<HashMap<String, String>>,
|
||||
shareable: Option<Arc<Mutex<ActorRegistry>>>,
|
||||
|
@ -167,11 +167,11 @@ impl ActorRegistry {
|
|||
}
|
||||
|
||||
/// Add an actor to the registry of known actors that can receive messages.
|
||||
pub fn register(&mut self, actor: Box<Actor+Send>) {
|
||||
pub fn register(&mut self, actor: Box<Actor + Send>) {
|
||||
self.actors.insert(actor.name().to_string(), actor);
|
||||
}
|
||||
|
||||
pub fn register_later(&self, actor: Box<Actor+Send>) {
|
||||
pub fn register_later(&self, actor: Box<Actor + Send>) {
|
||||
let mut actors = self.new_actors.borrow_mut();
|
||||
actors.push(actor);
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ impl Actor for HighlighterActor {
|
|||
}
|
||||
|
||||
#[derive(RustcEncodable)]
|
||||
struct ModifyAttributeReply{
|
||||
struct ModifyAttributeReply {
|
||||
from: String,
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ impl Actor for NodeActor {
|
|||
registry.actor_to_script(target.to_string()),
|
||||
modifications))
|
||||
.unwrap();
|
||||
let reply = ModifyAttributeReply{
|
||||
let reply = ModifyAttributeReply {
|
||||
from: self.name(),
|
||||
};
|
||||
stream.write_json_packet(&reply);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue