Fix run pass tests
This commit is contained in:
parent
5f347d7708
commit
5d49999ad3
1 changed files with 2 additions and 2 deletions
|
@ -31,13 +31,13 @@ impl ops::Sub<Point,Point> for Point {
|
|||
}
|
||||
|
||||
impl ops::Neg<Point> for Point {
|
||||
fn neg(&self) -> Point {
|
||||
fn neg(self) -> Point {
|
||||
Point {x: -self.x, y: -self.y}
|
||||
}
|
||||
}
|
||||
|
||||
impl ops::Not<Point> for Point {
|
||||
fn not(&self) -> Point {
|
||||
fn not(self) -> Point {
|
||||
Point {x: !self.x, y: !self.y }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue