refactor: change function definitions to const for improved performance and clarity

This commit is contained in:
Tunglies
2025-11-06 10:47:25 +08:00
Unverified
parent aaf3ebe547
commit 5a8e83cd49
14 changed files with 18 additions and 17 deletions

View File

@@ -137,7 +137,7 @@ impl CoreManager {
}
}
fn is_connection_io_error(kind: std::io::ErrorKind) -> bool {
const fn is_connection_io_error(kind: std::io::ErrorKind) -> bool {
matches!(
kind,
std::io::ErrorKind::ConnectionAborted