Skip to content

Commit

Permalink
Use write_all as suggested by clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
reinerh committed Mar 10, 2019
1 parent d2ace61 commit 0b8e7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ impl Tftp {

if netascii_state {
/* the file ended with an incomplete \r encoding */
file.write(&[b'\r'])?;
file.write_all(&[b'\r'])?;
}

file.flush()?;
Expand Down

0 comments on commit 0b8e7d7

Please sign in to comment.