Skip to content

Compiling config results in error E0271 #192

@lvx-tenebris

Description

@lvx-tenebris

"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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions