smol-rs / futures-lite

Futures, streams, and async I/O combinators.
Apache License 2.0
451 stars 26 forks source link

Remove unused variable in sample documentation #42

Closed derlaft closed 3 years ago

derlaft commented 3 years ago

line is actually declared later in while let ..., so this line is not necessary

warning: unused variable: `line`
   --> src/mpv.rs:125:9
    |
125 |     let mut line = String::new();
    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line`