mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Apply reviewer's suggestion
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
27d3c9e92f
commit
2a8c4bdc01
1 changed files with 7 additions and 6 deletions
|
@ -51,12 +51,13 @@ impl From<MercuryError> for Error {
|
||||||
|
|
||||||
impl std::fmt::Display for MercuryMethod {
|
impl std::fmt::Display for MercuryMethod {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
match *self {
|
let s = match *self {
|
||||||
MercuryMethod::Get => write!(f, "GET"),
|
MercuryMethod::Get => "GET",
|
||||||
MercuryMethod::Sub => write!(f, "SUB"),
|
MercuryMethod::Sub => "SUB",
|
||||||
MercuryMethod::Unsub => write!(f, "UNSUB"),
|
MercuryMethod::Unsub => "UNSUB",
|
||||||
MercuryMethod::Send => write!(f, "SEND"),
|
MercuryMethod::Send => "SEND",
|
||||||
}
|
};
|
||||||
|
write!(f, "{}", s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue