From 50cf75b8bc0585b0becdbcccc6637b3449c6a1df Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 7 Mar 2025 11:14:00 -0800 Subject: [PATCH] lint: fix lint issue Signed-off-by: William Casarin --- crates/notedeck_columns/src/post.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/notedeck_columns/src/post.rs b/crates/notedeck_columns/src/post.rs index 42f04cf..4f9b900 100644 --- a/crates/notedeck_columns/src/post.rs +++ b/crates/notedeck_columns/src/post.rs @@ -699,7 +699,7 @@ fn first_is_desired_char( new_text_index: usize, desired: char, ) -> bool { - new_text.chars().next().map_or(false, |c| { + new_text.chars().next().is_some_and(|c| { c == desired && (new_text_index == 0 || full_text.chars().nth(new_text_index - 1) == Some(' ')) })