mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-26 09:00:58 +00:00
fix compilation
This commit is contained in:
parent
aa9dbc7b71
commit
448c331447
2 changed files with 7 additions and 17 deletions
|
@ -1,7 +1,6 @@
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![feature(option_flattening)]
|
|
||||||
#![warn(
|
#![warn(
|
||||||
//clippy::pedantic,
|
clippy::pedantic, //
|
||||||
clippy::nursery,
|
clippy::nursery,
|
||||||
clippy::cargo
|
clippy::cargo
|
||||||
)]
|
)]
|
||||||
|
|
|
@ -132,13 +132,10 @@ impl ExtXSessionData {
|
||||||
/// #
|
/// #
|
||||||
/// let data = ExtXSessionData::new(
|
/// let data = ExtXSessionData::new(
|
||||||
/// "com.example.movie.title",
|
/// "com.example.movie.title",
|
||||||
/// SessionData::Value("some data".to_string())
|
/// SessionData::Value("some data".to_string()),
|
||||||
/// );
|
/// );
|
||||||
///
|
///
|
||||||
/// assert_eq!(
|
/// assert_eq!(data.data_id(), &"com.example.movie.title".to_string())
|
||||||
/// data.data_id(),
|
|
||||||
/// &"com.example.movie.title".to_string()
|
|
||||||
/// )
|
|
||||||
/// ```
|
/// ```
|
||||||
pub const fn data_id(&self) -> &String { &self.data_id }
|
pub const fn data_id(&self) -> &String { &self.data_id }
|
||||||
|
|
||||||
|
@ -150,13 +147,10 @@ impl ExtXSessionData {
|
||||||
/// #
|
/// #
|
||||||
/// let data = ExtXSessionData::new(
|
/// let data = ExtXSessionData::new(
|
||||||
/// "com.example.movie.title",
|
/// "com.example.movie.title",
|
||||||
/// SessionData::Value("some data".to_string())
|
/// SessionData::Value("some data".to_string()),
|
||||||
/// );
|
/// );
|
||||||
///
|
///
|
||||||
/// assert_eq!(
|
/// assert_eq!(data.data(), &SessionData::Value("some data".to_string()))
|
||||||
/// data.data(),
|
|
||||||
/// &SessionData::Value("some data".to_string())
|
|
||||||
/// )
|
|
||||||
/// ```
|
/// ```
|
||||||
pub const fn data(&self) -> &SessionData { &self.data }
|
pub const fn data(&self) -> &SessionData { &self.data }
|
||||||
|
|
||||||
|
@ -170,13 +164,10 @@ impl ExtXSessionData {
|
||||||
/// let data = ExtXSessionData::with_language(
|
/// let data = ExtXSessionData::with_language(
|
||||||
/// "com.example.movie.title",
|
/// "com.example.movie.title",
|
||||||
/// SessionData::Value("some data".to_string()),
|
/// SessionData::Value("some data".to_string()),
|
||||||
/// "english"
|
/// "english",
|
||||||
/// );
|
/// );
|
||||||
///
|
///
|
||||||
/// assert_eq!(
|
/// assert_eq!(data.language(), &Some("english".to_string()))
|
||||||
/// data.language(),
|
|
||||||
/// &Some("english".to_string())
|
|
||||||
/// )
|
|
||||||
/// ```
|
/// ```
|
||||||
pub const fn language(&self) -> &Option<String> { &self.language }
|
pub const fn language(&self) -> &Option<String> { &self.language }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue