mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-08 17:52:02 +00:00
Abide by formatting in 'Debug' implementations.
This commit is contained in:
parent
b29b2db35e
commit
a1cca97587
@ -414,8 +414,8 @@ impl<'a> Cookies<'a> {
|
|||||||
impl<'a> fmt::Debug for Cookies<'a> {
|
impl<'a> fmt::Debug for Cookies<'a> {
|
||||||
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<'r> fmt::Debug for Response<'r> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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
Block a user