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

Code does not build on 1.48.0 #9

Open
praetp opened this issue Dec 28, 2020 · 1 comment
Open

Code does not build on 1.48.0 #9

praetp opened this issue Dec 28, 2020 · 1 comment

Comments

@praetp
Copy link

praetp commented Dec 28, 2020

I am getting:

error[E0658]: use of unstable library feature 'array_methods'
   --> src/lib.rs:165:64
    |
165 |             Rotate::RotNone => arr.extend_from_slice(self.leds.as_slice()),
    |                                                                ^^^^^^^^
    |
    = note: see issue #76118 <https://github.com/rust-lang/rust/issues/76118> for more information

error[E0308]: mismatched types
   --> src/lib.rs:165:54
    |
165 |             Rotate::RotNone => arr.extend_from_slice(self.leds.as_slice()),
    |                                                      ^^^^^^^^^^^^^^^^^^^^ expected `u8`, found struct `RGB`
    |
    = note: expected reference `&[u8]`
               found reference `&[RGB<u8>]`

error: aborting due to 2 previous errors; 2 warnings emitted
@BartMassey
Copy link

See Pull Request #10 for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants