Supreeeme / xwayland-satellite

Xwayland outside your Wayland
Mozilla Public License 2.0
166 stars 8 forks source link

Build error on 0.2 #19

Closed phuhl closed 4 months ago

phuhl commented 4 months ago

Hey, thanks for the work! Currently on 016cef6 I get this error when running cargo build:

Compiling xwayland-satellite v0.2.0 (/home/philipp/git/js-playground/xwayland-satellite)
error[E0658]: use of unstable library feature 'array_methods'
   --> src/server/mod.rs:363:28
    |
363 | ...   let objects = keys.each_ref().map(|key| self[*key].0.take().un...
    |                          ^^^^^^^^
    |
    = note: see issue #76118 <https://github.com/rust-lang/rust/issues/76118> for more information

error[E0658]: use of unstable library feature 'array_methods'
   --> src/server/mod.rs:365:37
    |
365 |         let obj = insert_fn(objects.each_ref(), key);
    |                                     ^^^^^^^^
    |
    = note: see issue #76118 <https://github.com/rust-lang/rust/issues/76118> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `xwayland-satellite` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
phuhl commented 4 months ago

Sorry, my rust version was too old, rustup update fixed it.