We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27d3c9e commit 2a8c4bdCopy full SHA for 2a8c4bd
1 file changed
core/src/mercury/types.rs
@@ -51,12 +51,13 @@ impl From<MercuryError> for Error {
51
52
impl std::fmt::Display for MercuryMethod {
53
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
54
- match *self {
55
- MercuryMethod::Get => write!(f, "GET"),
56
- MercuryMethod::Sub => write!(f, "SUB"),
57
- MercuryMethod::Unsub => write!(f, "UNSUB"),
58
- MercuryMethod::Send => write!(f, "SEND"),
59
- }
+ let s = match *self {
+ MercuryMethod::Get => "GET",
+ MercuryMethod::Sub => "SUB",
+ MercuryMethod::Unsub => "UNSUB",
+ MercuryMethod::Send => "SEND",
+ };
60
+ write!(f, "{}", s)
61
}
62
63
0 commit comments