From 03440f5c07702df21afd57b00a9857a31557edb2 Mon Sep 17 00:00:00 2001
From: Maaz Ahmed <maaz.a@subcom.tech>
Date: Tue, 16 Apr 2024 19:51:01 +0530
Subject: [PATCH] chore: fix clippy lints

---
 src/query/ops/modifiers.rs | 2 ++
 src/result.rs              | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/query/ops/modifiers.rs b/src/query/ops/modifiers.rs
index e9b2ae7..f49b003 100644
--- a/src/query/ops/modifiers.rs
+++ b/src/query/ops/modifiers.rs
@@ -1,7 +1,9 @@
 use std::fmt::Display;
 
+#[allow(unused_imports)]
 use crate::{query::IntoQuery, seal::Sealed};
 
+#[allow(unused_imports)]
 use super::Operable;
 
 #[derive(Debug, Clone, Default)]
diff --git a/src/result.rs b/src/result.rs
index 6849333..081ede6 100644
--- a/src/result.rs
+++ b/src/result.rs
@@ -29,7 +29,7 @@ impl IntoResult for Result<response::PromqlResult, error::Error> {
 impl IntoResult for Result<reqwest::Response, error::Error> {
     type Result = RawResult;
     fn into_result(self) -> Self::Result {
-        self.map(|r| r.into()).map_err(|e| e.into())
+        self.map_err(|e| e.into())
     }
 }
 
-- 
GitLab