Apply suggestions
This commit is contained in:
parent
9090fa6a22
commit
16646ffc41
2 changed files with 7 additions and 9 deletions
|
|
@ -1,5 +1,3 @@
|
|||
use super::size::Size;
|
||||
|
||||
/// A 2D vector.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct Vector<T = f32> {
|
||||
|
|
@ -82,9 +80,3 @@ where
|
|||
[other.x, other.y]
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Size> for Vector<f32> {
|
||||
fn from(size: Size) -> Self {
|
||||
Vector::new(size.width, size.height)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue