Skip to content

Commit

Permalink
Fix doc-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mochi-neko committed Feb 17, 2024
1 parent d6462da commit 798978c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/srt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Thank you for your reading.
//! "#;
//!
//! let srt = SubRip::parse(text)?;
//! let srt = SubRip::parse(text).unwrap();
//! assert_eq!(srt, SubRip {
//! subtitles: vec![
//! SrtSubtitle {
Expand Down Expand Up @@ -128,7 +128,7 @@ impl SubRip {
/// Thank you for your reading.
/// "#;
///
/// let srt = SubRip::parse(text)?;
/// let srt = SubRip::parse(text).unwrap();
/// ```
pub fn parse(text: &str) -> ParseResult<Self> {
str_parser::srt(text).map_err(|err| err.into())
Expand Down
4 changes: 2 additions & 2 deletions src/vtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! - You could die.
//! "#;
//!
//! let vtt = WebVtt::parse(text)?;
//! let vtt = WebVtt::parse(text).unwrap();
//!
//! assert_eq!(
//! vtt,
Expand Down Expand Up @@ -160,7 +160,7 @@ impl WebVtt {
/// - You could die.
/// "#;
///
/// let vtt = WebVtt::parse(text)?;
/// let vtt = WebVtt::parse(text).unwrap();
/// ```
pub fn parse(input: &str) -> Result<Self, crate::error::ParseError> {
crate::vtt_parser::vtt(input).map_err(Into::into)
Expand Down

0 comments on commit 798978c

Please sign in to comment.