From 676c59cc18e983d25567e22df45d636e84693df7 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Fri, 15 May 2015 13:48:03 +1000 Subject: [PATCH] Fix a few warnings in cef build --- ports/cef/browser.rs | 1 - ports/cef/core.rs | 2 -- ports/cef/window.rs | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ports/cef/browser.rs b/ports/cef/browser.rs index 1e2d722cfc8..0885897c8f7 100644 --- a/ports/cef/browser.rs +++ b/ports/cef/browser.rs @@ -16,7 +16,6 @@ use wrappers::CefWrap; use compositing::windowing::{WindowNavigateMsg, WindowEvent}; use glutin_app; use libc::c_int; -use std::borrow::ToOwned; use std::cell::{Cell, RefCell, BorrowState}; use std::ptr; use std::sync::atomic::{AtomicIsize, Ordering}; diff --git a/ports/cef/core.rs b/ports/cef/core.rs index a0c790d0360..dbd7985539b 100644 --- a/ports/cef/core.rs +++ b/ports/cef/core.rs @@ -8,11 +8,9 @@ use types::{cef_main_args_t, cef_settings_t}; use libc::{c_char, c_int, c_void}; use util::opts; -use std::borrow::ToOwned; use std::ffi; use std::str; use browser; -use std_url::Url; const MAX_RENDERING_THREADS: usize = 128; diff --git a/ports/cef/window.rs b/ports/cef/window.rs index 47ec13e03da..e6d51118497 100644 --- a/ports/cef/window.rs +++ b/ports/cef/window.rs @@ -36,6 +36,7 @@ extern crate x11; use self::x11::xlib::XOpenDisplay; /// The type of an off-screen window. +#[allow(raw_pointer_derive)] #[derive(Clone)] pub struct Window { cef_browser: RefCell>,