aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ports/cef/core.rs5
-rw-r--r--ports/cef/lib.rs1
-rw-r--r--ports/cef/string_list.rs4
3 files changed, 5 insertions, 5 deletions
diff --git a/ports/cef/core.rs b/ports/cef/core.rs
index a24c6eebf88..d7376925a92 100644
--- a/ports/cef/core.rs
+++ b/ports/cef/core.rs
@@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use azure;
use command_line::command_line_init;
use eutil::fptr_is_null;
use geom::size::TypedSize2D;
@@ -49,7 +48,7 @@ pub extern "C" fn cef_shutdown() {
pub extern "C" fn cef_run_message_loop() {
let mut urls = Vec::new();
urls.push("http://s27.postimg.org/vqbtrolyr/servo.jpg".to_string());
- let opts = opts::Opts {
+ opts::set_opts(opts::Opts {
urls: urls,
n_render_threads: 1,
gpu_painting: false,
@@ -75,7 +74,7 @@ pub extern "C" fn cef_run_message_loop() {
user_agent: None,
dump_flow_tree: false,
validate_display_list_geometry: false,
- };
+ });
native::start(0, 0 as *const *const u8, proc() {
let window = Some(glfw_app::create_window());
servo::run(window);
diff --git a/ports/cef/lib.rs b/ports/cef/lib.rs
index a4e12301137..c84879937f3 100644
--- a/ports/cef/lib.rs
+++ b/ports/cef/lib.rs
@@ -5,6 +5,7 @@
#![feature(globs, macro_rules, phase, thread_local, link_args)]
#![allow(experimental, non_camel_case_types)]
+#![deny(unused_imports, unused_variable, unused_mut)]
#![feature(phase)]
#[phase(plugin, link)]
diff --git a/ports/cef/string_list.rs b/ports/cef/string_list.rs
index 9c9994d4c16..37f07a362e4 100644
--- a/ports/cef/string_list.rs
+++ b/ports/cef/string_list.rs
@@ -49,8 +49,8 @@ pub extern "C" fn cef_string_list_value(lt: *mut cef_string_list_t, index: c_int
if index < 0 || fptr_is_null(mem::transmute(lt)) { return 0; }
let v = string_map_to_vec(lt);
if index as uint > (*v).len() - 1 { return 0; }
- let cs = (*v).get(index as uint);
- cef_string_utf8_set(mem::transmute((**cs).str), (**cs).length, value, 1)
+ let cs = (*v)[index as uint];
+ cef_string_utf8_set(mem::transmute((*cs).str), (*cs).length, value, 1)
}
}