Rustfmt on xy.rs

This commit is contained in:
Alexandre Bury 2016-07-12 21:33:50 -07:00
parent 4fe7df220a
commit 12593c8ea8

View File

@ -12,10 +12,7 @@ pub struct XY<T> {
impl<T> XY<T> {
/// Creates a new `XY` from the given values.
pub fn new(x: T, y: T) -> Self {
XY {
x: x,
y: y,
}
XY { x: x, y: y }
}
/// Destructure self into a pair.