1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-28 17:50:59 +00:00

rustfmt code

This commit is contained in:
Luro02 2019-09-06 13:21:05 +02:00
parent 5da2fa8104
commit cb27640867
12 changed files with 15 additions and 23 deletions

View file

@ -46,7 +46,6 @@ impl FromStr for ExtXVersion {
}
}
#[cfg(test)]
mod test {
use super::*;

View file

@ -1,11 +1,10 @@
use crate::utils::parse_u64;
use crate::attribute::AttributePairs;
use crate::types::{DecimalResolution, HdcpLevel, ProtocolVersion, QuotedString};
use crate::utils::parse_u64;
use crate::{Error, ErrorKind, Result};
use std::fmt;
use std::str::FromStr;
/// [4.3.4.3. EXT-X-I-FRAME-STREAM-INF]
///
/// [4.3.4.3. EXT-X-I-FRAME-STREAM-INF]: https://tools.ietf.org/html/rfc8216#section-4.3.4.3
@ -158,7 +157,6 @@ mod test {
assert_eq!(tag.requires_version(), ProtocolVersion::V1);
}
fn quoted_string(s: &str) -> QuotedString {
QuotedString::new(s).unwrap()
}

View file

@ -1,6 +1,6 @@
use crate::utils::parse_yes_or_no;
use crate::attribute::AttributePairs;
use crate::types::{InStreamId, MediaType, ProtocolVersion, QuotedString};
use crate::utils::parse_yes_or_no;
use crate::{Error, ErrorKind, Result};
use std::fmt;
use std::str::FromStr;

View file

@ -4,7 +4,6 @@ use crate::{Error, ErrorKind, Result};
use std::fmt;
use std::str::FromStr;
/// [4.3.4.4. EXT-X-SESSION-DATA]
///
/// [4.3.4.4. EXT-X-SESSION-DATA]: https://tools.ietf.org/html/rfc8216#section-4.3.4.4

View file

@ -3,7 +3,6 @@ use crate::{Error, ErrorKind, Result};
use std::fmt;
use std::str::FromStr;
/// [4.3.4.5. EXT-X-SESSION-KEY]
///
/// [4.3.4.5. EXT-X-SESSION-KEY]: https://tools.ietf.org/html/rfc8216#section-4.3.4.5

View file

@ -1,14 +1,13 @@
use crate::utils::parse_u64;
use crate::attribute::AttributePairs;
use crate::types::{
ClosedCaptions, DecimalFloatingPoint, DecimalResolution, HdcpLevel,
ProtocolVersion, QuotedString, SingleLineString,
ClosedCaptions, DecimalFloatingPoint, DecimalResolution, HdcpLevel, ProtocolVersion,
QuotedString, SingleLineString,
};
use crate::utils::parse_u64;
use crate::{Error, ErrorKind, Result};
use std::fmt;
use std::str::FromStr;
/// [4.3.4.2. EXT-X-STREAM-INF]
///
/// [4.3.4.2. EXT-X-STREAM-INF]: https://tools.ietf.org/html/rfc8216#section-4.3.4.2

View file

@ -152,7 +152,5 @@ mod test {
use super::*;
#[test] // TODO; write some tests
fn it_works() {
}
fn it_works() {}
}

View file

@ -1,15 +1,15 @@
mod inf;
mod byte_range;
mod date_range;
mod discontinuity;
mod inf;
mod key;
mod map;
mod program_date_time;
mod discontinuity;
pub use inf::*;
pub use byte_range::*;
pub use date_range::*;
pub use discontinuity::*;
pub use inf::*;
pub use key::*;
pub use map::*;
pub use program_date_time::*;
pub use discontinuity::*;

View file

@ -1,5 +1,5 @@
mod independent_segments;
mod start;
pub use start::*;
pub use independent_segments::*;
pub use start::*;

View file

@ -1,6 +1,6 @@
use crate::utils::parse_yes_or_no;
use crate::attribute::AttributePairs;
use crate::types::{ProtocolVersion, SignedDecimalFloatingPoint};
use crate::utils::parse_yes_or_no;
use crate::{Error, ErrorKind, Result};
use std::fmt;
use std::str::FromStr;

View file

@ -1,7 +1,7 @@
use crate::types::QuotedString;
use crate::{Error, Result};
use std::fmt;
use std::str::{self, FromStr};
use crate::types::QuotedString;
/// The identifier of a closed captions group or its absence.
///

View file

@ -1,6 +1,6 @@
use crate::attribute::AttributePairs;
use crate::types::{EncryptionMethod, InitializationVector, ProtocolVersion, QuotedString};
use crate::{Error, ErrorKind, Result};
use crate::types::{QuotedString, InitializationVector, ProtocolVersion, EncryptionMethod};
use std::fmt;
use std::str::{self, FromStr};