mirror of
https://github.com/sile/hls_m3u8.git
synced 2025-02-16 13:15:14 +00:00
Support up-to-date clippy
This commit is contained in:
parent
02d7c80b2b
commit
7767f47f21
3 changed files with 4 additions and 5 deletions
|
@ -21,7 +21,6 @@
|
|||
//! assert!(m3u8.parse::<MediaPlaylist>().is_ok());
|
||||
//! ```
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(const_static_lifetime))]
|
||||
#[macro_use]
|
||||
extern crate trackable;
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ impl<'a> Iterator for Lines<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum Line<'a> {
|
||||
Blank,
|
||||
|
@ -78,7 +78,7 @@ pub enum Line<'a> {
|
|||
Uri(SingleLineString),
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum Tag {
|
||||
ExtM3u(tags::ExtM3u),
|
||||
|
|
|
@ -46,7 +46,7 @@ mod media_segment;
|
|||
/// [4.3.4. Master Playlist Tags]: https://tools.ietf.org/html/rfc8216#section-4.3.4
|
||||
/// [4.3.5. Media or Master Playlist Tags]: https://tools.ietf.org/html/rfc8216#section-4.3.5
|
||||
#[allow(missing_docs)]
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum MasterPlaylistTag {
|
||||
ExtXMedia(ExtXMedia),
|
||||
|
@ -96,7 +96,7 @@ impl_from!(MediaPlaylistTag, ExtXStart);
|
|||
///
|
||||
/// [4.3.2. Media Segment Tags]: https://tools.ietf.org/html/rfc8216#section-4.3.2
|
||||
#[allow(missing_docs)]
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum MediaSegmentTag {
|
||||
ExtInf(ExtInf),
|
||||
|
|
Loading…
Reference in a new issue