AugmendTech / CrabGrab

🦀 🖥️ 🦀
Apache License 2.0
152 stars 12 forks source link

got error while running example #37

Closed qzd1989 closed 4 months ago

qzd1989 commented 4 months ago

macos: 222

rust version: rustup 1.27.1 (54dd3d00f 2024-04-24) info: This is the version for the rustup toolchain manager, not the rustc compiler. info: The currently active rustc version is rustc 1.79.0 (129f3b996 2024-06-10)

command:

cargo run --example capture_window

errors:

   Compiling crabgrab v0.4.0 (/Users/kiwi/Documents/Rust/CrabGrab)
error[E0195]: lifetime parameters or bounds on type `Target` do not match the trait declaration
    --> src/platform/macos/objc_wrap.rs:3363:1
     |
3363 | / lazy_static! {
3364 | |     static ref WINDOW_LEVELS: WindowLevels = {
3365 | |         WindowLevels {
3366 | |             base                : get_window_level_for_key(kCGBaseWindowLevelKey),
...    |
3388 | |     };
3389 | | }
     | |_^ lifetimes do not match type in trait
     |
     = note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0195`.
error: could not compile `crabgrab` (lib) due to 1 previous error
qzd1989 commented 4 months ago

Does anyone have a group of this project for communicating? like discord or etc.

qzd1989 commented 4 months ago

it works when I reinstall rust :)

qzd1989 commented 4 months ago

how to close this issue?