fix trailing empty line
This commit is contained in:
+5
-1
@@ -64,7 +64,11 @@ impl Display for Departure {
|
||||
f.write_str(&format!(" | delayed: {actual_time} "))?;
|
||||
}
|
||||
}
|
||||
f.write_str("\n")?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
pub fn format_departures(response: Response) -> String {
|
||||
let departures: Vec<String> = response.departures.iter().map(|d| d.to_string()).collect();
|
||||
departures.join("\n\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user