diff --git a/src/rustbox.rs b/src/rustbox.rs index bfab9d3..165e542 100644 --- a/src/rustbox.rs +++ b/src/rustbox.rs @@ -5,6 +5,7 @@ extern crate termbox_sys as termbox; pub use self::style::{Style, RB_BOLD, RB_UNDERLINE, RB_REVERSE, RB_NORMAL}; +use std::cell::UnsafeCell; use std::error::Error; use std::fmt; use std::io; @@ -272,7 +273,7 @@ pub struct RustBox { // top-down order. Otherwise it will not properly protect the above fields. _running: running::RunningGuard, // Termbox is not thread safe. See #39. - _phantom: PhantomData<*mut ()>, + _phantom: PhantomData>, // Store this so we know which colours to use output_mode: OutputMode,