From aae380954519c85d6d8eec6df3103edb36fe047e Mon Sep 17 00:00:00 2001 From: Luro02 <24826124+Luro02@users.noreply.github.com> Date: Thu, 6 Feb 2020 12:24:40 +0100 Subject: [PATCH] remove `Copy` trait from Lines Copy should not be implemented for types that implement Iterator, because this would be confusing. https://rust-lang.github.io/rust-clippy/master/#copy_iterator --- src/line.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/line.rs b/src/line.rs index 51b0de3..26dae79 100644 --- a/src/line.rs +++ b/src/line.rs @@ -4,7 +4,7 @@ use std::str::FromStr; use crate::tags; use crate::Error; -#[derive(Debug, Clone, Copy, PartialEq, PartialOrd, Ord, Eq, Hash)] +#[derive(Debug, Clone, PartialEq, PartialOrd, Ord, Eq, Hash)] pub(crate) struct Lines<'a> { buffer: &'a str, // the line at which the iterator currently is