Code cleanup

This commit is contained in:
2024-05-11 17:25:15 +03:00
parent 913d90f077
commit aa3c2ae313
20 changed files with 45 additions and 43 deletions

View File

@@ -29,6 +29,9 @@ pub fn init_logger() {
.init();
}
/// Handles an error.
/// This function must be as cheap and generic as possible and must remain sync.
/// If expensive or long action is required, a task should be spawned but not joined.
#[inline]
pub fn handle_error<T>(error: T)
where