mirror of
https://github.com/sile/hls_m3u8.git
synced 2025-01-11 12:45:25 +00:00
cleanup imports
This commit is contained in:
parent
b932cef71a
commit
5486c5e830
5 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,8 @@
|
||||||
|
use std::fmt;
|
||||||
|
use std::str::FromStr;
|
||||||
|
|
||||||
use crate::utils::{quote, unquote};
|
use crate::utils::{quote, unquote};
|
||||||
use crate::{Error, Result};
|
use crate::{Error, Result};
|
||||||
use std::fmt;
|
|
||||||
use std::str::{self, FromStr};
|
|
||||||
|
|
||||||
/// The identifier of a closed captions group or its absence.
|
/// The identifier of a closed captions group or its absence.
|
||||||
///
|
///
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::str::{self, FromStr};
|
use std::str::FromStr;
|
||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ impl FromStr for InitializationVector {
|
||||||
|
|
||||||
let mut v = [0; 16];
|
let mut v = [0; 16];
|
||||||
for (i, c) in s.as_bytes().chunks(2).skip(1).enumerate() {
|
for (i, c) in s.as_bytes().chunks(2).skip(1).enumerate() {
|
||||||
let d = str::from_utf8(c).map_err(|e| Error::custom(e))?;
|
let d = std::str::from_utf8(c).map_err(|e| Error::custom(e))?;
|
||||||
let b = u8::from_str_radix(d, 16).map_err(|e| Error::custom(e))?;
|
let b = u8::from_str_radix(d, 16).map_err(|e| Error::custom(e))?;
|
||||||
v[i] = b;
|
v[i] = b;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::str::{self, FromStr};
|
use std::str::FromStr;
|
||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::str::{self, FromStr};
|
use std::str::FromStr;
|
||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::str::{self, FromStr};
|
use std::str::FromStr;
|
||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue