aboutsummaryrefslogtreecommitdiffstats
path: root/src/servo/engine.rs
diff options
context:
space:
mode:
authorMargaret Meyerhofer <mmeyerhofer@mozilla.com>2012-08-03 15:16:08 -0700
committerMargaret Meyerhofer <mmeyerhofer@mozilla.com>2012-08-06 14:55:26 -0700
commit0b796c410cf5d0924b652186d5b17e8b3ad285a8 (patch)
tree35dfcdc18533217bc07f1a404ea8c6cc44b5f818 /src/servo/engine.rs
parentf290f18087b6cd4fe487ccf23be0d2f2f3f959a2 (diff)
downloadservo-0b796c410cf5d0924b652186d5b17e8b3ad285a8.tar.gz
servo-0b796c410cf5d0924b652186d5b17e8b3ad285a8.zip
Fixed the changing alt syntax and cleaned up some compiler warnings
Diffstat (limited to 'src/servo/engine.rs')
-rw-r--r--src/servo/engine.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/servo/engine.rs b/src/servo/engine.rs
index 2bf4c1ccb0f..f7861af49ec 100644
--- a/src/servo/engine.rs
+++ b/src/servo/engine.rs
@@ -42,7 +42,9 @@ class Engine<S:Sink send copy> {
fn handle_request(request: Msg) -> bool {
alt request {
- LoadURLMsg(url) {
+ LoadURLMsg(url) => {
+ // TODO: change copy to move once we have alt move
+ let url = copy url;
if url.path.ends_with(".js") {
self.content.send(ExecuteMsg(url))
} else {
@@ -51,7 +53,7 @@ class Engine<S:Sink send copy> {
return true;
}
- ExitMsg(sender) {
+ ExitMsg(sender) => {
self.content.send(content::ExitMsg);
self.layout.send(layout_task::ExitMsg);