Fix the from_over_into clippy lint

This commit is contained in:
Andreas Rammhold 2021-05-16 18:15:13 +02:00 committed by Cole Helbling
parent ba9efad152
commit 2d7758dc3b
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -89,9 +89,9 @@ pub enum ExchangeType {
Custom(String),
}
impl Into<String> for ExchangeType {
fn into(self) -> String {
match self {
impl From<ExchangeType> for String {
fn from(exchange_type: ExchangeType) -> String {
match exchange_type {
ExchangeType::Topic => "topic".to_owned(),
ExchangeType::Headers => "headers".to_owned(),
ExchangeType::Fanout => "fanout".to_owned(),