Fix build warnings.

This commit is contained in:
Ms2ger 2015-07-04 14:33:18 +02:00
parent 0298c92670
commit d4888dbd4d
7 changed files with 8 additions and 10 deletions

View file

@ -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) => {

View file

@ -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};

View file

@ -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)]