diff --git a/src/query/ops/modifiers.rs b/src/query/ops/modifiers.rs index e9b2ae7f5585a40d2cf60db7759cdd19cab98db1..f49b00380511567f88d96f004c6d6b2777bc1a22 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 684933342a7d35c4dc7e53d1a9fe1e5ce5a7c69f..081ede69cefcbbb74f6e01356d2da0634a342c1c 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()) } }