Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for stabilized features. #138

Merged
merged 1 commit into from May 6, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -1,6 +1,6 @@
[package]
name = "euclid"
version = "0.6.6"
version = "0.6.7"
authors = ["The Servo Project Developers"]
description = "Geometry primitives"
documentation = "http://doc.servo.org/euclid/"
@@ -16,7 +16,6 @@ use num_traits::NumCast;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use std::cmp::Ordering;
use std::ops::{Add, Sub, Mul, Div, Neg};
#[cfg(feature = "unstable")]
use std::ops::{AddAssign, SubAssign};
use std::marker::PhantomData;

@@ -73,7 +72,6 @@ impl<U, T: Clone + Add<T, Output=T>> Add for Length<U, T> {
}

// length += length
#[cfg(feature = "unstable")]
impl<U, T: Clone + AddAssign<T>> AddAssign for Length<U, T> {
fn add_assign(&mut self, other: Length<U, T>) {
self.0 += other.get();
@@ -89,7 +87,6 @@ impl<U, T: Clone + Sub<T, Output=T>> Sub<Length<U, T>> for Length<U, T> {
}

// length -= length
#[cfg(feature = "unstable")]
impl<U, T: Clone + SubAssign<T>> SubAssign for Length<U, T> {
fn sub_assign(&mut self, other: Length<U, T>) {
self.0 -= other.get();
@@ -227,7 +224,6 @@ mod tests {
assert_eq!(negative_zero_feet.get(), 0.0);
}

#[cfg(feature = "unstable")]
#[test]
fn test_addassign() {
let one_cm: Length<Mm, f32> = Length::new(10.0);
@@ -238,7 +234,6 @@ mod tests {
assert_eq!(measurement.get(), 15.0);
}

#[cfg(feature = "unstable")]
#[test]
fn test_subassign() {
let one_cm: Length<Mm, f32> = Length::new(10.0);
@@ -7,8 +7,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![cfg_attr(feature = "unstable", feature(asm, repr_simd, test, augmented_assignments, op_assign_traits))]
#![cfg_attr(feature = "unstable", feature(deprecated))]
#![cfg_attr(feature = "unstable", feature(asm, repr_simd, test))]

#![cfg_attr(feature = "plugins", feature(custom_derive, plugin))]
#![cfg_attr(feature = "plugins", plugin(heapsize_plugin))]
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.