| commit: | 3b42c9b623e4712aa82c661a2ce17dee82d62964 | 
| author: | Trevor Bentley | 
| committer: | Trevor Bentley | 
| date: | Mon Nov 16 18:06:22 2020 +0100 | 
| parents: | f904a5ce95dae3cb66fd839f3f4c729257ac6b01 | 
diff --git a/src/touchbar.rs b/src/touchbar.rs line changes: +2/-2 index b496cd7..1571d41 --- a/src/touchbar.rs +++ b/src/touchbar.rs
@@ -7,7 +7,7 @@ use super::interface::*; use std::fmt; use std::rc::Rc; use std::cell::Cell; -use std::sync::{Once, ONCE_INIT}; +use std::sync::Once; use std::collections::BTreeMap; use objc::Message;
@@ -1174,7 +1174,7 @@ impl ObjcAppDelegate {} unsafe impl Message for ObjcAppDelegate { } -static OBJC_SUBCLASS_REGISTER_CLASS: Once = ONCE_INIT; +static OBJC_SUBCLASS_REGISTER_CLASS: Once = Once::new(); impl INSObject for ObjcAppDelegate { fn class() -> &'static Class {