Deny unsafe code in more crates.

This commit is contained in:
Ms2ger 2016-03-18 14:43:03 +01:00
parent c90a1b9b1c
commit 08083f1c9d
17 changed files with 44 additions and 0 deletions

View file

@ -18,6 +18,8 @@
#![plugin(plugins)]
#![plugin(serde_macros)]
#![deny(unsafe_code)]
extern crate alloc;
extern crate app_units;
extern crate azure;
@ -98,7 +100,9 @@ pub mod font_template;
pub mod paint_thread;
// Platform-specific implementations.
#[allow(unsafe_code)]
pub mod platform;
// Text
#[allow(unsafe_code)]
pub mod text;

View file

@ -1774,6 +1774,7 @@ trait ScaledFontExtensionMethods {
}
impl ScaledFontExtensionMethods for ScaledFont {
#[allow(unsafe_code)]
fn draw_text(&self,
draw_target: &DrawTarget,
run: &TextRun,

View file

@ -450,6 +450,7 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static {
}, ConstellationMsg::Failure(failure_msg), c);
}
#[allow(unsafe_code)]
fn start(&mut self) {
debug!("PaintThread: beginning painting loop");