Skip to content

Error building the GUI #18

@noor-malaika

Description

@noor-malaika

I've tried to build the GUI of shadowmap using

cargo run --features gui --bin shadowmap-gui

as mentioned in ReadMe file, but it raises the following error:

error[E0308]: mismatched types
  --> src/gui.rs:72:24
   |
72 |         Box::new(|_cc| Box::new(App::default())),
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Box<dyn App>, Box<...>>`, found `Box<App>`
   |
   = note: expected enum `Result<Box<dyn eframe::App>, Box<(dyn std::error::Error + Send + Sync + 'static)>>`
            found struct `Box<App>`
help: try wrapping the expression in `Ok`
   |
72 |         Box::new(|_cc| Ok(Box::new(App::default()))),
   |                        +++                        +

For more information about this error, try `rustc --explain E0308`.
error: could not compile `shadowmap` (bin "shadowmap-gui") due to 1 previous error

Architecure: x86-64
OS: ArchLinux

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