mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-06-17 04:20:31 +00:00
minor improvements
This commit is contained in:
parent
a777f74cfa
commit
048f09bd14
|
@ -1,6 +1,3 @@
|
||||||
extern crate clap;
|
|
||||||
extern crate hls_m3u8;
|
|
||||||
|
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use hls_m3u8::{MasterPlaylist, MediaPlaylist};
|
use hls_m3u8::{MasterPlaylist, MediaPlaylist};
|
||||||
use std::io::{self, Read};
|
use std::io::{self, Read};
|
||||||
|
|
|
@ -101,7 +101,7 @@ impl fmt::Display for Error {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Error {
|
impl Error {
|
||||||
fn new(inner: ErrorKind) -> Self { Self { inner } }
|
const fn new(inner: ErrorKind) -> Self { Self { inner } }
|
||||||
|
|
||||||
pub(crate) fn custom<T: fmt::Display>(value: T) -> Self {
|
pub(crate) fn custom<T: fmt::Display>(value: T) -> Self {
|
||||||
Self::new(ErrorKind::Custom(value.to_string()))
|
Self::new(ErrorKind::Custom(value.to_string()))
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
clippy::nursery,
|
clippy::nursery,
|
||||||
clippy::cargo
|
clippy::cargo
|
||||||
)]
|
)]
|
||||||
#![allow(clippy::multiple_crate_versions)]
|
#![allow(clippy::multiple_crate_versions, clippy::must_use_candidate)]
|
||||||
#![warn(
|
#![warn(
|
||||||
missing_docs,
|
missing_docs,
|
||||||
missing_copy_implementations,
|
missing_copy_implementations,
|
||||||
|
|
Loading…
Reference in a new issue