1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-05-25 19:58:14 +00:00

minor improvements

This commit is contained in:
Luro02 2020-01-26 13:12:19 +01:00
parent a777f74cfa
commit 048f09bd14
No known key found for this signature in database
GPG key ID: B66FD4F74501A9CF
3 changed files with 2 additions and 5 deletions

View file

@ -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};

View file

@ -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()))

View file

@ -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,