aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2019-03-10 17:06:01 +0100
committerReiner Herrmann <reiner@reiner-h.de>2019-03-10 17:06:01 +0100
commit0b8e7d786e982d5410d29b805c130fd597294ac0 (patch)
tree50d564bf774bddbb89db20e42d4d96ae92172f7a /src
parentd2ace614a1bfa8643889b49852b38f13b25a6e64 (diff)
Use write_all as suggested by clippy
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4142e7f..2e43873 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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()?;