1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-12-23 12:30:29 +00:00

cleanup imports

This commit is contained in:
Luro02 2019-09-15 19:09:48 +02:00
parent b932cef71a
commit 5486c5e830
5 changed files with 8 additions and 7 deletions

View file

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

View file

@ -1,6 +1,6 @@
use std::fmt;
use std::ops::Deref;
use std::str::{self, FromStr};
use std::str::FromStr;
use crate::Error;
@ -60,7 +60,7 @@ impl FromStr for InitializationVector {
let mut v = [0; 16];
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))?;
v[i] = b;
}

View file

@ -1,5 +1,5 @@
use std::fmt;
use std::str::{self, FromStr};
use std::str::FromStr;
use crate::Error;

View file

@ -1,5 +1,5 @@
use std::fmt;
use std::str::{self, FromStr};
use std::str::FromStr;
use crate::Error;

View file

@ -1,5 +1,5 @@
use std::fmt;
use std::str::{self, FromStr};
use std::str::FromStr;
use crate::Error;