Fixed compilation errors from keyword changes

This commit is contained in:
Margaret Meyerhofer 2012-08-02 11:00:58 -07:00
parent fa122b2a78
commit b9b68a72b7
5 changed files with 9 additions and 9 deletions

@ -1 +1 @@
Subproject commit 6dba36f7a8ab7747a7ead4ed0b6c3f8a2e3382d4
Subproject commit 7d72b513076c01196c30b09bee85d2c1a2817719

@ -1 +1 @@
Subproject commit 90214523ec299ff13912831f60e200f9c0ae6261
Subproject commit ee3f5d026385cb9ed933aba3cad2ee06bfc1ee1c

View file

@ -30,7 +30,7 @@ each rendered frame and submit them to be drawn to the display
FIXME: Change this name to Compositor.
"]
iface Sink {
trait Sink {
fn begin_drawing(+next_dt: pipes::chan<AzDrawTargetRef>);
fn draw(+next_dt: pipes::chan<AzDrawTargetRef>, draw_me: AzDrawTargetRef);
fn add_event_listener(listener: comm::chan<Event>);

View file

@ -25,18 +25,18 @@ fn from_cmdline_args(args: ~[~str]) -> Opts {
getopts::optopt(~"o")
];
let match = alt getopts::getopts(args, opts) {
let opt_match = alt getopts::getopts(args, opts) {
result::ok(m) { copy m }
result::err(f) { fail getopts::fail_str(f) }
};
let urls = if match.free.is_empty() {
let urls = if opt_match.free.is_empty() {
fail ~"servo asks that you provide 1 or more URLs"
} else {
copy match.free
copy opt_match.free
};
let render_mode = alt getopts::opt_maybe_str(match, ~"o") {
let render_mode = alt getopts::opt_maybe_str(opt_match, ~"o") {
some(output_file) { Png(copy output_file) }
none { Screen }
};

View file

@ -10,11 +10,11 @@ type Tree<T> = {
mut next_sibling: option<T>
};
iface ReadMethods<T> {
trait ReadMethods<T> {
fn with_tree_fields<R>(T, f: fn(Tree<T>) -> R) -> R;
}
iface WriteMethods<T> {
trait WriteMethods<T> {
fn with_tree_fields<R>(T, f: fn(Tree<T>) -> R) -> R;
}