Fix the from_over_into clippy lint
This commit is contained in:
parent
ba9efad152
commit
2d7758dc3b
|
@ -89,9 +89,9 @@ pub enum ExchangeType {
|
||||||
Custom(String),
|
Custom(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Into<String> for ExchangeType {
|
impl From<ExchangeType> for String {
|
||||||
fn into(self) -> String {
|
fn from(exchange_type: ExchangeType) -> String {
|
||||||
match self {
|
match exchange_type {
|
||||||
ExchangeType::Topic => "topic".to_owned(),
|
ExchangeType::Topic => "topic".to_owned(),
|
||||||
ExchangeType::Headers => "headers".to_owned(),
|
ExchangeType::Headers => "headers".to_owned(),
|
||||||
ExchangeType::Fanout => "fanout".to_owned(),
|
ExchangeType::Fanout => "fanout".to_owned(),
|
||||||
|
|
Loading…
Reference in a new issue