mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-22 07:10:59 +00:00
minor changes
This commit is contained in:
parent
56f8d10f38
commit
cdab47ad35
6 changed files with 8 additions and 8 deletions
|
@ -18,7 +18,7 @@ impl ExtXKey {
|
|||
pub(crate) const PREFIX: &'static str = "#EXT-X-KEY:";
|
||||
|
||||
/// Makes a new `ExtXKey` tag.
|
||||
/// # Example
|
||||
/// # Examples
|
||||
/// ```
|
||||
/// use hls_m3u8::tags::ExtXKey;
|
||||
/// use hls_m3u8::types::EncryptionMethod;
|
||||
|
@ -38,7 +38,7 @@ impl ExtXKey {
|
|||
}
|
||||
|
||||
/// Makes a new `ExtXKey` tag without a decryption key.
|
||||
/// # Example
|
||||
/// # Examples
|
||||
/// ```
|
||||
/// use hls_m3u8::tags::ExtXKey;
|
||||
///
|
||||
|
@ -60,7 +60,7 @@ impl ExtXKey {
|
|||
}
|
||||
|
||||
/// Returns whether the [EncryptionMethod] is [None](EncryptionMethod::None).
|
||||
/// # Example
|
||||
/// # Examples
|
||||
/// ```
|
||||
/// use hls_m3u8::tags::ExtXKey;
|
||||
/// use hls_m3u8::types::EncryptionMethod;
|
||||
|
|
|
@ -50,7 +50,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
fn test_parser() {
|
||||
let closed_captions = ClosedCaptions::None;
|
||||
assert_eq!(closed_captions, "NONE".parse::<ClosedCaptions>().unwrap());
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
pub fn test_parse() {
|
||||
pub fn test_parser() {
|
||||
let decimal_floating_point = DecimalFloatingPoint::new(22.0).unwrap();
|
||||
assert_eq!(
|
||||
decimal_floating_point,
|
||||
|
|
|
@ -90,7 +90,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
fn test_parser() {
|
||||
assert_eq!(
|
||||
DecimalResolution::new(1920, 1080),
|
||||
"1920x1080".parse::<DecimalResolution>().unwrap()
|
||||
|
|
|
@ -89,7 +89,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
fn test_parser() {
|
||||
assert_eq!(
|
||||
EncryptionMethod::Aes128,
|
||||
"AES-128".parse::<EncryptionMethod>().unwrap()
|
||||
|
|
|
@ -50,7 +50,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
fn test_parser() {
|
||||
let level = HdcpLevel::Type0;
|
||||
assert_eq!(level, "TYPE-0".parse::<HdcpLevel>().unwrap());
|
||||
|
||||
|
|
Loading…
Reference in a new issue