Closed Tarnadas closed 3 years ago
I'm running into this too. I think it might be because WindowCreationFailed(Box<dyn std::error::Error>)
needs a more restrictive trait object?
A workaround is to do something like:
// FIXME: `iced::Error` is not `Send + Sync`, and so is incompatible with `anyhow::Result`.
// See this issue for more information: https://github.com/hecrj/iced/issues/516
pikelet_editor::run().map_err(|err| anyhow!("{}", err))
With the recent addition of error handling, I tried to wrap an iced::Result with an anyhow::Result, but it's not working because I get this error:
Example code: