Rust File Encryption: Use of unstable library feature 'array_methods'
Shadorain opened this issue · 3 comments
Shadorain commented
sylvain101010 commented
Hi @Shadorain Thanks for the heads up!
It seems that you have an older version of Rust installed, as of Rust 1.57.0
, .as_slice
is no longer an unstable feature (https://doc.rust-lang.org/std/primitive.array.html#method.as_slice).
You can update to the latest version of Rust with rustup update
.
Alternatively, if you don't want to update, you can use &buffer[..read_count]
Sylvain
✌️
Shadorain commented
Apologies for that! Just switched back to my desktop which I haven't used since been away at school and never updated Rust!
Thanks for the help there, didn't mean to bother!
sylvain101010 commented
No worries, Happy end of the year :)