jamesmunns / postcard

A no_std + serde compatible message library for Rust
Apache License 2.0
943 stars 91 forks source link

Unused variable in Flavors example? #53

Closed barnabywalters closed 2 years ago

barnabywalters commented 2 years ago

I’m new to rust and could be missing something simple here, but from what I can see, in the flavors example, the

let mut buf = [0u8; 32];

line is unnecessary, as the buf variable doesn’t seem to be used anywhere in the rest of the code.

jamesmunns commented 2 years ago

Good catch, thanks @barnabywalters!