Upgrade to rustc 1.44.0-nightly (42abbd887 2020-04-07)

This commit is contained in:
Simon Sapin 2020-04-08 14:57:42 +02:00
parent 4227425c1e
commit 1c0549ce7f
10 changed files with 37 additions and 26 deletions

View file

@ -96,7 +96,7 @@ impl EventsLoop {
}
EventLoop::Headless(ref data) => {
let &(ref flag, ref condvar) = &**data;
while { !*flag.lock().unwrap() } {
while !*flag.lock().unwrap() {
self.sleep(flag, condvar);
if callback(glutin::Event::Awakened) == glutin::ControlFlow::Break {
break;

View file

@ -37,7 +37,7 @@ extern "C" fn default_panic_handler(msg: *const c_char) {
lazy_static! {
static ref ON_PANIC: RwLock<extern "C" fn(*const c_char)> = RwLock::new(default_panic_handler);
static ref SERVO_VERSION: CString =
{ CString::new(simpleservo::servo_version()).expect("Can't create string") };
CString::new(simpleservo::servo_version()).expect("Can't create string");
}
#[no_mangle]