Fix formatting

This commit is contained in:
Dirkjan Ochtman 2021-03-29 22:33:06 +02:00
parent 89d066eb6b
commit 712a02f1e1
1 changed files with 4 additions and 1 deletions

View File

@ -252,7 +252,10 @@ struct Candidate {
#[pyproto]
impl PyObjectProtocol for Candidate {
fn __repr__(&self) -> PyResult<String> {
Ok(format!("instant_distance.Candidate(pid={}, distance={})", self.pid, self.distance))
Ok(format!(
"instant_distance.Candidate(pid={}, distance={})",
self.pid, self.distance
))
}
}