mirror of
https://github.com/servo/servo.git
synced 2025-07-15 19:33:46 +01:00
Fix a few warnings in cef build
This commit is contained in:
parent
a97f81b83d
commit
676c59cc18
3 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,6 @@ use wrappers::CefWrap;
|
||||||
use compositing::windowing::{WindowNavigateMsg, WindowEvent};
|
use compositing::windowing::{WindowNavigateMsg, WindowEvent};
|
||||||
use glutin_app;
|
use glutin_app;
|
||||||
use libc::c_int;
|
use libc::c_int;
|
||||||
use std::borrow::ToOwned;
|
|
||||||
use std::cell::{Cell, RefCell, BorrowState};
|
use std::cell::{Cell, RefCell, BorrowState};
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use std::sync::atomic::{AtomicIsize, Ordering};
|
use std::sync::atomic::{AtomicIsize, Ordering};
|
||||||
|
|
|
@ -8,11 +8,9 @@ use types::{cef_main_args_t, cef_settings_t};
|
||||||
|
|
||||||
use libc::{c_char, c_int, c_void};
|
use libc::{c_char, c_int, c_void};
|
||||||
use util::opts;
|
use util::opts;
|
||||||
use std::borrow::ToOwned;
|
|
||||||
use std::ffi;
|
use std::ffi;
|
||||||
use std::str;
|
use std::str;
|
||||||
use browser;
|
use browser;
|
||||||
use std_url::Url;
|
|
||||||
|
|
||||||
const MAX_RENDERING_THREADS: usize = 128;
|
const MAX_RENDERING_THREADS: usize = 128;
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ extern crate x11;
|
||||||
use self::x11::xlib::XOpenDisplay;
|
use self::x11::xlib::XOpenDisplay;
|
||||||
|
|
||||||
/// The type of an off-screen window.
|
/// The type of an off-screen window.
|
||||||
|
#[allow(raw_pointer_derive)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Window {
|
pub struct Window {
|
||||||
cef_browser: RefCell<Option<CefBrowser>>,
|
cef_browser: RefCell<Option<CefBrowser>>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue