Skip to content

Commit

Permalink
Deprecated parse_html_for_line(): .expect() instead of .unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
Enselic committed Mar 9, 2022
1 parent 22bccfa commit 85a1a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html.rs
Expand Up @@ -112,7 +112,7 @@ impl<'a> ClassedHTMLGenerator<'a> {
/// but this function can't be changed without breaking compatibility so is deprecated.
#[deprecated(since="4.5.0", note="Please use `parse_html_for_line_which_includes_newline` instead")]
pub fn parse_html_for_line(&mut self, line: &str) {
self.parse_html_for_line_which_includes_newline(line).unwrap();
self.parse_html_for_line_which_includes_newline(line).expect("Please use `parse_html_for_line_which_includes_newline` instead");
// retain newline
self.html.push('\n');
}
Expand Down

0 comments on commit 85a1a4e

Please sign in to comment.