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
parent aaf3ebe547
commit 5a8e83cd49
14 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ enum Operation {
}
impl Operation {
fn timeout(&self) -> u64 {
const fn timeout(&self) -> u64 {
match self {
Self::Upload => TIMEOUT_UPLOAD,
Self::Download => TIMEOUT_DOWNLOAD,