mirror of https://github.com/rwf2/Rocket.git
parent
42a0fb8afe
commit
dd43d68d28
|
@ -381,7 +381,7 @@ impl crate::http::ext::IntoOwned for Errors<'_> {
|
||||||
|
|
||||||
impl fmt::Display for Errors<'_> {
|
impl fmt::Display for Errors<'_> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
write!(f, "{} errors:", self.len())?;
|
write!(f, "{} error(s):", self.len())?;
|
||||||
for error in self.iter() {
|
for error in self.iter() {
|
||||||
write!(f, "\n{}", error)?;
|
write!(f, "\n{}", error)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue