mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-11-20 15:31:54 +01:00
Aparently Rust doesn't implicitly cast a `Result<Arc<T>>` to `Result<Arc<dyn T>>`, so the `Result` was being mapped with a explicity cast. But unwrapping the `Result` with a `?` and then wrapping it back into `Ok` make the implicit cast work. This avoid typing the entire type, which was breaking the code in multiple lines. |
||
|---|---|---|
| .. | ||
| niri | ||
| hyprland.rs | ||
| mod.rs | ||
| sway.rs | ||