BurntSushi / rust-snappy

Snappy compression implemented in Rust (including the Snappy frame format).
BSD 3-Clause "New" or "Revised" License
444 stars 43 forks source link

Remove unnecessary mut #13

Closed rikardfalkeborn closed 7 years ago

rikardfalkeborn commented 7 years ago

This fixes a warning when building with nighty rust:

warning: variable does not need to be mutable
    --> src/compress.rs:502:13
    |
502 |         let mut table: &mut [u16] =
    |             ^^^^^^^^^
    |
    = note: #[warn(unused_mut)] on by default
BurntSushi commented 7 years ago

Thanks!