Fix clippy.
All checks were successful
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded

This commit is contained in:
Tom Alexander
2023-12-15 19:57:35 -05:00
parent e24fcb9ded
commit 5a8159eed7
3 changed files with 4 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ pub(crate) fn broken_end<'b, 'g, 'r, 's>(
Paragraph::of_text(
input.get_until(remaining).into(),
body,
if body.len() > 0 { Some(body) } else { None },
if !body.is_empty() { Some(body) } else { None },
post_blank.map(Into::<&str>::into),
),
))
@@ -145,7 +145,7 @@ pub(crate) fn broken_dynamic_block<'b, 'g, 'r, 's>(
Paragraph::of_text(
input.get_until(remaining).into(),
body,
if body.len() > 0 { Some(body) } else { None },
if !body.is_empty() { Some(body) } else { None },
post_blank.map(Into::<&str>::into),
),
))