code format
This commit is contained in:
@@ -27,13 +27,15 @@ pub enum Payload {
|
|||||||
|
|
||||||
impl ::std::fmt::Debug for Payload {
|
impl ::std::fmt::Debug for Payload {
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::result::Result<(), ::std::fmt::Error> {
|
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::result::Result<(), ::std::fmt::Error> {
|
||||||
write!(f, "{}", match self {
|
let s = match self {
|
||||||
Payload::Empty => "Empty",
|
Payload::Empty => "Empty",
|
||||||
Payload::Text(t, _) => &t,
|
Payload::Text(t, _) => &t,
|
||||||
#[cfg(feature = "json")]
|
#[cfg(feature = "json")]
|
||||||
Payload::JSON(_) => "JSON",
|
Payload::JSON(_) => "JSON",
|
||||||
Payload::Reader(_) => "Reader",
|
Payload::Reader(_) => "Reader",
|
||||||
})
|
};
|
||||||
|
|
||||||
|
write!(f, "{}", s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user