mirror of https://github.com/rwf2/Rocket.git
Abide by formatting in 'Debug' implementations.
This commit is contained in:
parent
e3c1a4ad3a
commit
bed93133b8
|
@ -403,8 +403,8 @@ impl Cookies<'_> {
|
||||||
impl fmt::Debug for Cookies<'_> {
|
impl fmt::Debug for Cookies<'_> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
match *self {
|
match *self {
|
||||||
Cookies::Jarred(ref jar, _) => write!(f, "{:?}", jar),
|
Cookies::Jarred(ref jar, _) => jar.fmt(f),
|
||||||
Cookies::Empty(ref jar) => write!(f, "{:?}", jar)
|
Cookies::Empty(ref jar) => jar.fmt(f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,7 +154,7 @@ impl fmt::Debug for LaunchError {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
self.mark_handled();
|
self.mark_handled();
|
||||||
write!(f, "{:?}", self.kind())
|
self.kind().fmt(f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1185,7 +1185,7 @@ impl fmt::Debug for Response<'_> {
|
||||||
}
|
}
|
||||||
|
|
||||||
match self.body {
|
match self.body {
|
||||||
Some(ref body) => writeln!(f, "{:?}", body),
|
Some(ref body) => body.fmt(f),
|
||||||
None => writeln!(f, "Empty Body")
|
None => writeln!(f, "Empty Body")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ impl<T: Read> Stream<T> {
|
||||||
|
|
||||||
impl<T: Read + Debug> Debug for Stream<T> {
|
impl<T: Read + Debug> Debug for Stream<T> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
write!(f, "Stream({:?})", self.0)
|
f.debug_tuple("Stream").field(&self.0).finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue