mirror of
https://github.com/openai/codex.git
synced 2026-05-26 05:55:36 +00:00
clippy
This commit is contained in:
@@ -203,7 +203,7 @@ fn starts_plaintext_mention(text_bytes: &[u8], index: usize) -> bool {
|
||||
index == 0
|
||||
|| text_bytes
|
||||
.get(index.saturating_sub(1))
|
||||
.is_none_or(|byte| byte.is_ascii_whitespace())
|
||||
.is_none_or(u8::is_ascii_whitespace)
|
||||
}
|
||||
|
||||
fn ends_plaintext_mention(text_bytes: &[u8], index: usize) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user