From 2d7758dc3bee286283433060bbd89b9d14ed737f Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sun, 16 May 2021 18:15:13 +0200 Subject: [PATCH] Fix the from_over_into clippy lint --- ofborg/src/easyamqp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(),