mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: better error handling for client initialization
This commit is contained in:
parent
1b35354272
commit
9245188af7
10 changed files with 97 additions and 49 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{await_sync, register_client};
|
||||
use crate::{await_sync, register_fallible_client};
|
||||
use cfg_if::cfg_if;
|
||||
use color_eyre::{Help, Report, Result};
|
||||
use std::fmt::{Debug, Display, Formatter};
|
||||
|
@ -141,4 +141,4 @@ pub trait WorkspaceClient: Debug + Send + Sync {
|
|||
fn subscribe_workspace_change(&self) -> broadcast::Receiver<WorkspaceUpdate>;
|
||||
}
|
||||
|
||||
register_client!(dyn WorkspaceClient, workspaces);
|
||||
register_fallible_client!(dyn WorkspaceClient, workspaces);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue