mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Deny unsafe code in more crates.
This commit is contained in:
parent
c90a1b9b1c
commit
08083f1c9d
17 changed files with 44 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -1774,6 +1774,7 @@ trait ScaledFontExtensionMethods {
|
|||
}
|
||||
|
||||
impl ScaledFontExtensionMethods for ScaledFont {
|
||||
#[allow(unsafe_code)]
|
||||
fn draw_text(&self,
|
||||
draw_target: &DrawTarget,
|
||||
run: &TextRun,
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue