1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-22 15:21:01 +00:00

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
This commit is contained in:
Luro02 2020-02-06 12:24:40 +01:00
parent 2471737455
commit aae3809545
No known key found for this signature in database
GPG key ID: B66FD4F74501A9CF

View file

@ -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