Skip to content

Commit

Permalink
Fixed compilation errors from keyword changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeyerho committed Aug 2, 2012
1 parent fa122b2 commit b9b68a7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/rust-mozjs
Submodule rust-mozjs updated 1 files
+1 −1 jsapi.rs
2 changes: 1 addition & 1 deletion src/rust-opengles
Submodule rust-opengles updated 1 files
+2 −2 gl2.rs
2 changes: 1 addition & 1 deletion src/servo/gfx/renderer.rs
Expand Up @@ -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>);
Expand Down
8 changes: 4 additions & 4 deletions src/servo/opts.rs
Expand Up @@ -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 }
};
Expand Down
4 changes: 2 additions & 2 deletions src/servo/util/tree.rs
Expand Up @@ -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;
}

Expand Down

0 comments on commit b9b68a7

Please sign in to comment.