Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error #36

Open
Kayxue opened this issue Jan 18, 2025 · 1 comment · May be fixed by #37
Open

Compilation Error #36

Kayxue opened this issue Jan 18, 2025 · 1 comment · May be fixed by #37
Assignees
Labels
Good First Issue Good for newcomers High Priority High priority. Status: Needs Triage This has not been labeled or discussed for handling yet. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.

Comments

@Kayxue
Copy link

Kayxue commented Jan 18, 2025

Thanks for taking the time to fill out a bug report.
If you want real-time support consider joining our Discord at https://melonbot.io/support instead.

Please note that this form is for bugs only!

Summary

  • A simple summary of your bug report.
    Compilation error on Rust 1.84.0.
    Error:
error[E0382]: use of moved value: `window`
   --> src/main.rs:245:20
    |
141 |     let window: Window = {
    |         ------ move occurs because `window` has type `Window`, which does not implement the `Copy` trait
...
230 |             WebViewBuilder::new(window)?
    |                                 ------ value moved here
...
245 |     event_loop.run(move |event: Event<UserEvents>, _, control_flow: &mut ControlFlow| {
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value used here after move
...
267 |                     window.set_minimized(true)
    |                     ------ use occurs due to use in closure

For more information about this error, try `rustc --explain E0382`.

Steps To Reproduce

  • Steps to reproduce the behavior.
    Just clone the repo and build.

Expected Behavior

  • A clear and concise description of what is expected to happen.
    App launched.

Platform And Versions

  • OS: Mac OS 15.2
  • Rustc:
cargo 1.84.0 (66221abde 2024-11-19)
release: 1.84.0
commit-hash: 66221abdeca2002d318fde6efff516aab091df0e
commit-date: 2024-11-19
host: aarch64-apple-darwin
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.7.1 (sys:0.4.74+curl-8.9.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Mac OS 15.2.0 [64-bit]
  • LemonCord: 0.1.2

Additional Context

  • If there's anything else to say, please do so here.
@Kayxue Kayxue added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Jan 18, 2025
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Jan 18, 2025
@japandotorg japandotorg added Good First Issue Good for newcomers High Priority High priority. labels Jan 18, 2025
@japandotorg
Copy link
Owner

Hello @Kayxue , thanks for creating the issue, while I'll be fixing this soon, however I do not personally have a Mac, so I'll appreciate if you could join the support server for the meantime for debug purposes if needed.

@hunsbea hunsbea linked a pull request Jan 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good for newcomers High Priority High priority. Status: Needs Triage This has not been labeled or discussed for handling yet. Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants