Skip to content

Commit

Permalink
Fix a warning on result usage for set_content_from_html (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
aringenbach authored Feb 21, 2023
1 parent 7db4873 commit d06044f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/wysiwyg/src/composer_model/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ mod test {
#[test]
fn set_content_from_html_with_complex_html_has_proper_selection() {
let mut model = cm("|");
model.set_content_from_html(&utf16(
let result = model.set_content_from_html(&utf16(
"<blockquote>\
<p>Some</p>\
<p>multi-line</p>\
Expand All @@ -260,6 +260,7 @@ mod test {
<pre><code>A\n\tcode\nblock</code></pre>\
<p>Some <code>inline</code> code</p>",
));
assert!(result.is_ok());
assert_eq!(
tx(&model),
"<blockquote>\
Expand Down

0 comments on commit d06044f

Please sign in to comment.