The current Serialize implementation for Window is full of expect calls which will panic on the running thread if ever encountered. I have encountered a few of these in the last few days when running at more verbose logging levels.
These should be replaced with calls to serde::ser::Error::custom to return a Result so that serialization errors can be handled gracefully without requiring a full restart of the application following a panic on a listener thread.
Originally created by @LGUG2Z on GitHub (Oct 26, 2021).
Originally assigned to: @LGUG2Z on GitHub.
https://github.com/LGUG2Z/komorebi/blob/6ae59671a2c100dfd75e00ec19606a46b1faa929/komorebi/src/window.rs#L59
The current `Serialize` implementation for Window is full of `expect` calls which will panic on the running thread if ever encountered. I have encountered a few of these in the last few days when running at more verbose logging levels.
These should be replaced with calls to [`serde::ser::Error::custom`](https://docs.serde.rs/serde/ser/trait.Error.html#tymethod.custom) to return a `Result` so that serialization errors can be handled gracefully without requiring a full restart of the application following a panic on a listener thread.
adam
added the bug label 2026-01-05 14:47:55 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @LGUG2Z on GitHub (Oct 26, 2021).
Originally assigned to: @LGUG2Z on GitHub.
https://github.com/LGUG2Z/komorebi/blob/6ae59671a2c100dfd75e00ec19606a46b1faa929/komorebi/src/window.rs#L59
The current
Serializeimplementation for Window is full ofexpectcalls which will panic on the running thread if ever encountered. I have encountered a few of these in the last few days when running at more verbose logging levels.These should be replaced with calls to
serde::ser::Error::customto return aResultso that serialization errors can be handled gracefully without requiring a full restart of the application following a panic on a listener thread.