mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Replace unsafe_blocks by unsafe_code.
This commit is contained in:
parent
4eb26065ac
commit
3479d3fa7f
53 changed files with 151 additions and 57 deletions
|
@ -25,7 +25,7 @@ pub struct ImageData {
|
|||
}
|
||||
|
||||
impl ImageData {
|
||||
#[allow(unsafe_blocks)]
|
||||
#[allow(unsafe_code)]
|
||||
fn new_inherited(width: u32, height: u32, data: Option<Vec<u8>>, global: GlobalRef) -> ImageData {
|
||||
unsafe {
|
||||
let cx = global.get_cx();
|
||||
|
@ -57,7 +57,7 @@ pub trait ImageDataHelpers {
|
|||
}
|
||||
|
||||
impl<'a> ImageDataHelpers for JSRef<'a, ImageData> {
|
||||
#[allow(unsafe_blocks)]
|
||||
#[allow(unsafe_code)]
|
||||
fn get_data_array(self, global: &GlobalRef) -> Vec<u8> {
|
||||
unsafe {
|
||||
let cx = global.get_cx();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue