-
Notifications
You must be signed in to change notification settings - Fork 84
Description
"error[E0271]: type mismatch resolving for<'r> <for<'s> fn(wtftw::window_manager::WindowManager, Rc<(dyn wtftw::window_system::WindowSystem + 'static)>, &'s GeneralConfig) -> std::result::Result<wtftw::window_manager::WindowManager, anyhow::Error> {wtftw::handlers::default::restart} as FnOnce<(wtftw::window_manager::WindowManager, Rc<(dyn wtftw::window_system::WindowSystem + 'static)>, &'r GeneralConfig)>>::Output == wtftw::window_manager::WindowManager
--> src/config.rs:65:5
|
65 | add_key_handler_str!(config, w, "q", modm, restart);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct wtftw::window_manager::WindowManager, found enum std::result::Result
Why does this specific line break the config but the rest of the lines don't? it compiles fine without it, is there any fix to this?