Skip to content

Commit

Permalink
Apply reviewer's suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed May 27, 2024
1 parent 27d3c9e commit 2a8c4bd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions core/src/mercury/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ impl From<MercuryError> for Error {

impl std::fmt::Display for MercuryMethod {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match *self {
MercuryMethod::Get => write!(f, "GET"),
MercuryMethod::Sub => write!(f, "SUB"),
MercuryMethod::Unsub => write!(f, "UNSUB"),
MercuryMethod::Send => write!(f, "SEND"),
}
let s = match *self {
MercuryMethod::Get => "GET",
MercuryMethod::Sub => "SUB",
MercuryMethod::Unsub => "UNSUB",
MercuryMethod::Send => "SEND",
};
write!(f, "{}", s)
}
}

Expand Down

0 comments on commit 2a8c4bd

Please sign in to comment.