mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix clippy::to_string_trait_impl
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
99878e0f72
commit
27d3c9e92f
1 changed files with 6 additions and 7 deletions
|
@ -49,15 +49,14 @@ impl From<MercuryError> for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ToString for MercuryMethod {
|
impl std::fmt::Display for MercuryMethod {
|
||||||
fn to_string(&self) -> String {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
match *self {
|
match *self {
|
||||||
MercuryMethod::Get => "GET",
|
MercuryMethod::Get => write!(f, "GET"),
|
||||||
MercuryMethod::Sub => "SUB",
|
MercuryMethod::Sub => write!(f, "SUB"),
|
||||||
MercuryMethod::Unsub => "UNSUB",
|
MercuryMethod::Unsub => write!(f, "UNSUB"),
|
||||||
MercuryMethod::Send => "SEND",
|
MercuryMethod::Send => write!(f, "SEND"),
|
||||||
}
|
}
|
||||||
.to_owned()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue