From 0b8e7d786e982d5410d29b805c130fd597294ac0 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sun, 10 Mar 2019 17:06:01 +0100 Subject: Use write_all as suggested by clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()?; -- cgit v1.2.3