mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Fix build warnings.
This commit is contained in:
parent
0298c92670
commit
d4888dbd4d
7 changed files with 8 additions and 10 deletions
|
@ -1163,7 +1163,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
for operation in operations {
|
||||
let matrix = match operation {
|
||||
&transform::ComputedOperation::Rotate(ax, ay, az, theta) => {
|
||||
let theta = f32::consts::PI_2 - theta.radians();
|
||||
let theta = 2.0f32 * f32::consts::PI - theta.radians();
|
||||
Matrix4::create_rotation(ax, ay, az, theta)
|
||||
}
|
||||
&transform::ComputedOperation::Perspective(d) => {
|
||||
|
|
|
@ -63,7 +63,6 @@ use std::collections::HashMap;
|
|||
use std::collections::hash_state::DefaultState;
|
||||
use std::mem::transmute;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::ptr;
|
||||
use std::sync::mpsc::{channel, Sender, Receiver, Select};
|
||||
use std::sync::{Arc, Mutex, MutexGuard};
|
||||
use style::computed_values::{filter, mix_blend_mode};
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#![feature(arc_unique)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(filling_drop)]
|
||||
#![feature(float_consts)]
|
||||
#![feature(hashmap_hasher)]
|
||||
#![feature(heap_api)]
|
||||
#![feature(mpsc_select)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue