From e20a311786299f692092a6c90ff024dedebdf51f Mon Sep 17 00:00:00 2001 From: atlas Date: Thu, 4 Jun 2026 19:54:03 +0200 Subject: [PATCH] tidy: is_whitespace() already covers newline, remove redundant arm --- hive-c0re/src/matrix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive-c0re/src/matrix.rs b/hive-c0re/src/matrix.rs index 5de07c78..82a566f9 100644 --- a/hive-c0re/src/matrix.rs +++ b/hive-c0re/src/matrix.rs @@ -390,7 +390,7 @@ fn extract_new_password(bot_message: &str) -> Option { let rest = rest.trim_start(); // Stop at first whitespace or newline; password must be non-empty. let end = rest - .find(|c: char| c.is_whitespace() || c == '\n') + .find(char::is_whitespace) .unwrap_or(rest.len()); let pw = rest[..end].trim(); if !pw.is_empty() {