mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-12-23 12:30:29 +00:00
minor improvements
This commit is contained in:
parent
a777f74cfa
commit
048f09bd14
3 changed files with 2 additions and 5 deletions
|
@ -1,6 +1,3 @@
|
|||
extern crate clap;
|
||||
extern crate hls_m3u8;
|
||||
|
||||
use clap::{App, Arg};
|
||||
use hls_m3u8::{MasterPlaylist, MediaPlaylist};
|
||||
use std::io::{self, Read};
|
||||
|
|
|
@ -101,7 +101,7 @@ impl fmt::Display for 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 {
|
||||
Self::new(ErrorKind::Custom(value.to_string()))
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
clippy::nursery,
|
||||
clippy::cargo
|
||||
)]
|
||||
#![allow(clippy::multiple_crate_versions)]
|
||||
#![allow(clippy::multiple_crate_versions, clippy::must_use_candidate)]
|
||||
#![warn(
|
||||
missing_docs,
|
||||
missing_copy_implementations,
|
||||
|
|
Loading…
Reference in a new issue