From 54a080fe1fa06bb8dcb2f2feed804d2b46147bdc Mon Sep 17 00:00:00 2001 From: Valkum Date: Mon, 22 Feb 2021 19:45:46 +0100 Subject: [PATCH] Fix clippy::useless_conversion --- src/client_server/push.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client_server/push.rs b/src/client_server/push.rs index 03da73a..5403f96 100644 --- a/src/client_server/push.rs +++ b/src/client_server/push.rs @@ -95,7 +95,7 @@ pub async fn get_pushrule_route( if let Some(rule) = rule { Ok(get_pushrule::Response { rule }.into()) } else { - Err(Error::BadRequest(ErrorKind::NotFound, "Push rule not found.").into()) + Err(Error::BadRequest(ErrorKind::NotFound, "Push rule not found.")) } }