From e3f224e6b09ae3a1fe021eca3dba764f9f6e0c4a Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 24 Mar 2024 12:04:19 +0100 Subject: [PATCH] Do not redundantly import `std::iter::IntoIterator` Rust now warns about duplicate imports. `std::iter::IntoIterator` is part of the Rust prelude since Rust 2015. This prevents `criterion-plot` from compiling with recent Rust versions because of `#![deny(warnings)]`. --- plot/src/axis.rs | 1 - plot/src/candlestick.rs | 1 - plot/src/curve.rs | 1 - plot/src/errorbar.rs | 1 - plot/src/filledcurve.rs | 1 - 5 files changed, 5 deletions(-) diff --git a/plot/src/axis.rs b/plot/src/axis.rs index 5f7ae4947..e348cd844 100644 --- a/plot/src/axis.rs +++ b/plot/src/axis.rs @@ -1,7 +1,6 @@ //! Coordinate axis use std::borrow::Cow; -use std::iter::IntoIterator; use crate::map; use crate::traits::{Configure, Data, Set}; diff --git a/plot/src/candlestick.rs b/plot/src/candlestick.rs index e0a5cbebc..ff2c0be04 100644 --- a/plot/src/candlestick.rs +++ b/plot/src/candlestick.rs @@ -1,7 +1,6 @@ //! "Candlestick" plots use std::borrow::Cow; -use std::iter::IntoIterator; use crate::data::Matrix; use crate::traits::{self, Data, Set}; diff --git a/plot/src/curve.rs b/plot/src/curve.rs index bbddeff1a..3c2b68ae3 100644 --- a/plot/src/curve.rs +++ b/plot/src/curve.rs @@ -1,7 +1,6 @@ //! Simple "curve" like plots use std::borrow::Cow; -use std::iter::IntoIterator; use crate::data::Matrix; use crate::traits::{self, Data, Set}; diff --git a/plot/src/errorbar.rs b/plot/src/errorbar.rs index 7efd23e3d..e8c73a67a 100644 --- a/plot/src/errorbar.rs +++ b/plot/src/errorbar.rs @@ -1,7 +1,6 @@ //! Error bar plots use std::borrow::Cow; -use std::iter::IntoIterator; use crate::data::Matrix; use crate::traits::{self, Data, Set}; diff --git a/plot/src/filledcurve.rs b/plot/src/filledcurve.rs index f79dbddce..bc54082eb 100644 --- a/plot/src/filledcurve.rs +++ b/plot/src/filledcurve.rs @@ -1,7 +1,6 @@ //! Filled curve plots use std::borrow::Cow; -use std::iter::IntoIterator; use crate::data::Matrix; use crate::traits::{self, Data, Set};