63 lines
3.3 KiB
Plaintext
63 lines
3.3 KiB
Plaintext
Compiling oa-desktop v0.2.0 (C:\Users\User\Documents\Git\ARCADIA-Studio\crates\oa-desktop)
|
|
error[E0061]: this method takes 2 arguments but 3 arguments were supplied
|
|
--> crates\oa-desktop\src\behavior\canvas_workspace\tests.rs:268:23
|
|
|
|
|
268 | self.renderer.screenshot(
|
|
| ^^^^^^^^^^
|
|
269 | Size::new(app.window_size.width as u32, app.window_size.height as u32),
|
|
270 | 1.,
|
|
| -- unexpected argument #2 of type `{float}`
|
|
|
|
|
note: expected `&Viewport`, found `Size<u32>`
|
|
--> crates\oa-desktop\src\behavior\canvas_workspace\tests.rs:269:13
|
|
|
|
|
269 | Size::new(app.window_size.width as u32, app.window_size.height as u32),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: expected reference `&iced::advanced::iced_graphics::Viewport`
|
|
found struct `iced::Size<u32>`
|
|
note: method defined here
|
|
--> C:\Users\User\Documents\Git\ARCADIA-Studio\.local\toolchain\cargo\registry\src\index.crates.io-1949cf8c6b5b557f\iced_wgpu-0.14.0\src\lib.rs:183:12
|
|
|
|
|
183 | pub fn screenshot(
|
|
| ^^^^^^^^^^
|
|
help: remove the extra argument
|
|
|
|
|
269 - Size::new(app.window_size.width as u32, app.window_size.height as u32),
|
|
270 - 1.,
|
|
269 + /* &iced::advanced::iced_graphics::Viewport */,
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
--> crates\oa-desktop\src\behavior\topology\layout_tests.rs:726:82
|
|
|
|
|
726 | let task = app.update(Message::Workflow(crate::workflow::Event::Semantic(message)));
|
|
| -------------------------------- ^^^^^^^ expected `Box<Event>`, found `Event`
|
|
| |
|
|
| arguments to this enum variant are incorrect
|
|
|
|
|
= note: expected struct `Box<semantic_review::batch::Event>`
|
|
found enum `semantic_review::batch::Event`
|
|
= note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
|
|
note: tuple variant defined here
|
|
--> crates\oa-desktop\src\workflow.rs:22:5
|
|
|
|
|
22 | Semantic(Box<crate::semantic_review::Event>),
|
|
| ^^^^^^^^
|
|
help: store this in the heap by calling `Box::new`
|
|
|
|
|
726 | let task = app.update(Message::Workflow(crate::workflow::Event::Semantic(Box::new(message))));
|
|
| +++++++++ +
|
|
|
|
warning: unused import: `iced::advanced::renderer::Headless`
|
|
--> crates\oa-desktop\src\behavior\canvas_workspace\tests.rs:239:13
|
|
|
|
|
239 | use iced::advanced::renderer::Headless;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
|
|
|
|
Some errors have detailed explanations: E0061, E0308.
|
|
For more information about an error, try `rustc --explain E0061`.
|
|
warning: `oa-desktop` (bin "arcadia-studio" test) generated 1 warning
|
|
error: could not compile `oa-desktop` (bin "arcadia-studio" test) due to 2 previous errors; 1 warning emitted
|