refactor: streamline error handling and resource management in various modules

This commit is contained in:
Tunglies
2025-11-06 10:19:06 +08:00
parent 671ac2ebed
commit 69a706b438
13 changed files with 66 additions and 50 deletions
+1 -2
View File
@@ -109,8 +109,7 @@ impl Handle {
let msg_str = msg.into();
if !*handle.startup_completed.read() {
let mut errors = handle.startup_errors.write();
errors.push(ErrorMessage {
handle.startup_errors.write().push(ErrorMessage {
status: status_str,
message: msg_str,
});