mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Manual fixups so that the rustfmt output won't trigger tidy.
This commit is contained in:
parent
b292f78363
commit
f7ae1a37e3
40 changed files with 443 additions and 416 deletions
|
@ -210,10 +210,9 @@ where
|
|||
return Err(());
|
||||
}
|
||||
self.coordinates.iter().zip(other.coordinates.iter()).map(|(this, other)| {
|
||||
Ok(
|
||||
this.0.compute_squared_distance(&other.0)? +
|
||||
this.1.compute_squared_distance(&other.1)?,
|
||||
)
|
||||
let d1 = this.0.compute_squared_distance(&other.0)?;
|
||||
let d2 = this.1.compute_squared_distance(&other.1)?;
|
||||
Ok(d1 + d2)
|
||||
}).sum()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue