1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-25 08:31:00 +00:00

minor changes

This commit is contained in:
Luro02 2019-09-21 13:24:05 +02:00
parent 56f8d10f38
commit cdab47ad35
6 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@ impl ExtXKey {
pub(crate) const PREFIX: &'static str = "#EXT-X-KEY:"; pub(crate) const PREFIX: &'static str = "#EXT-X-KEY:";
/// Makes a new `ExtXKey` tag. /// Makes a new `ExtXKey` tag.
/// # Example /// # Examples
/// ``` /// ```
/// use hls_m3u8::tags::ExtXKey; /// use hls_m3u8::tags::ExtXKey;
/// use hls_m3u8::types::EncryptionMethod; /// use hls_m3u8::types::EncryptionMethod;
@ -38,7 +38,7 @@ impl ExtXKey {
} }
/// Makes a new `ExtXKey` tag without a decryption key. /// Makes a new `ExtXKey` tag without a decryption key.
/// # Example /// # Examples
/// ``` /// ```
/// use hls_m3u8::tags::ExtXKey; /// use hls_m3u8::tags::ExtXKey;
/// ///
@ -60,7 +60,7 @@ impl ExtXKey {
} }
/// Returns whether the [EncryptionMethod] is [None](EncryptionMethod::None). /// Returns whether the [EncryptionMethod] is [None](EncryptionMethod::None).
/// # Example /// # Examples
/// ``` /// ```
/// use hls_m3u8::tags::ExtXKey; /// use hls_m3u8::tags::ExtXKey;
/// use hls_m3u8::types::EncryptionMethod; /// use hls_m3u8::types::EncryptionMethod;

View file

@ -50,7 +50,7 @@ mod tests {
} }
#[test] #[test]
fn test_parse() { fn test_parser() {
let closed_captions = ClosedCaptions::None; let closed_captions = ClosedCaptions::None;
assert_eq!(closed_captions, "NONE".parse::<ClosedCaptions>().unwrap()); assert_eq!(closed_captions, "NONE".parse::<ClosedCaptions>().unwrap());

View file

@ -84,7 +84,7 @@ mod tests {
} }
#[test] #[test]
pub fn test_parse() { pub fn test_parser() {
let decimal_floating_point = DecimalFloatingPoint::new(22.0).unwrap(); let decimal_floating_point = DecimalFloatingPoint::new(22.0).unwrap();
assert_eq!( assert_eq!(
decimal_floating_point, decimal_floating_point,

View file

@ -90,7 +90,7 @@ mod tests {
} }
#[test] #[test]
fn test_parse() { fn test_parser() {
assert_eq!( assert_eq!(
DecimalResolution::new(1920, 1080), DecimalResolution::new(1920, 1080),
"1920x1080".parse::<DecimalResolution>().unwrap() "1920x1080".parse::<DecimalResolution>().unwrap()

View file

@ -89,7 +89,7 @@ mod tests {
} }
#[test] #[test]
fn test_parse() { fn test_parser() {
assert_eq!( assert_eq!(
EncryptionMethod::Aes128, EncryptionMethod::Aes128,
"AES-128".parse::<EncryptionMethod>().unwrap() "AES-128".parse::<EncryptionMethod>().unwrap()

View file

@ -50,7 +50,7 @@ mod tests {
} }
#[test] #[test]
fn test_parse() { fn test_parser() {
let level = HdcpLevel::Type0; let level = HdcpLevel::Type0;
assert_eq!(level, "TYPE-0".parse::<HdcpLevel>().unwrap()); assert_eq!(level, "TYPE-0".parse::<HdcpLevel>().unwrap());