diff --git a/ofborg/src/easyamqp.rs b/ofborg/src/easyamqp.rs index 0df4da6..ccdba9f 100644 --- a/ofborg/src/easyamqp.rs +++ b/ofborg/src/easyamqp.rs @@ -89,9 +89,9 @@ pub enum ExchangeType { Custom(String), } -impl Into for ExchangeType { - fn into(self) -> String { - match self { +impl From 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(),