Skip to content

Commit

Permalink
Auto merge of #189 - nox:backwards-bump, r=mbrubeck
Browse files Browse the repository at this point in the history
Revert breaking change in 0.11.x release

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/189)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo authored May 1, 2017
2 parents f3f0c68 + f2b23df commit 6a2a4f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "euclid"
version = "0.11.2"
version = "0.11.3"
authors = ["The Servo Project Developers"]
description = "Geometry primitives"
documentation = "https://docs.rs/euclid/"
Expand Down
6 changes: 3 additions & 3 deletions src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl<T: NumCast + Copy, U> TypedPoint2D<T, U> {
/// When casting from floating point points, it is worth considering whether
/// to `round()`, `ceil()` or `floor()` before the cast in order to obtain
/// the desired conversion behavior.
pub fn to_usize(&self) -> TypedPoint2D<usize, U> {
pub fn to_uint(&self) -> TypedPoint2D<usize, U> {
self.cast().unwrap()
}

Expand Down Expand Up @@ -517,7 +517,7 @@ impl<T: NumCast + Copy, U> TypedPoint3D<T, U> {
/// When casting from floating point points, it is worth considering whether
/// to `round()`, `ceil()` or `floor()` before the cast in order to obtain
/// the desired conversion behavior.
pub fn to_usize(&self) -> TypedPoint3D<usize, U> {
pub fn to_uint(&self) -> TypedPoint3D<usize, U> {
self.cast().unwrap()
}

Expand Down Expand Up @@ -756,7 +756,7 @@ impl<T: NumCast + Copy, U> TypedPoint4D<T, U> {
/// When casting from floating point points, it is worth considering whether
/// to `round()`, `ceil()` or `floor()` before the cast in order to obtain
/// the desired conversion behavior.
pub fn to_usize(&self) -> TypedPoint4D<usize, U> {
pub fn to_uint(&self) -> TypedPoint4D<usize, U> {
self.cast().unwrap()
}

Expand Down
2 changes: 1 addition & 1 deletion src/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ impl<T: NumCast + Copy, Unit> TypedRect<T, Unit> {
/// When casting from floating point rectangles, it is worth considering whether
/// to `round()`, `round_in()` or `round_out()` before the cast in order to
/// obtain the desired conversion behavior.
pub fn to_usize(&self) -> TypedRect<usize, Unit> {
pub fn to_uint(&self) -> TypedRect<usize, Unit> {
self.cast().unwrap()
}

Expand Down
2 changes: 1 addition & 1 deletion src/size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<T: NumCast + Copy, Unit> TypedSize2D<T, Unit> {
/// When casting from floating point sizes, it is worth considering whether
/// to `round()`, `ceil()` or `floor()` before the cast in order to obtain
/// the desired conversion behavior.
pub fn to_usize(&self) -> TypedSize2D<usize, Unit> {
pub fn to_uint(&self) -> TypedSize2D<usize, Unit> {
self.cast().unwrap()
}

Expand Down

0 comments on commit 6a2a4f5

Please sign in to comment.