diff options
author | qkzk <qu3nt1n@gmail.com> | 2024-01-24 19:46:01 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2024-01-24 19:46:01 +0100 |
commit | 35b4461ad30255730977fb89713f70cf55bbfd40 (patch) | |
tree | 99b1932873e2a281789f0c0c54ff5509ff3ddf83 | |
parent | 04817c389599af1717300ac013bbf7b35f799432 (diff) |
replace write! by write_all
-rw-r--r-- | src/io/input_history.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/input_history.rs b/src/io/input_history.rs index e23e72b..5ff6963 100644 --- a/src/io/input_history.rs +++ b/src/io/input_history.rs @@ -46,7 +46,7 @@ impl InputHistory { let mut hist_file = std::fs::OpenOptions::new() .append(true) .open(&self.file_path)?; - hist_file.write(elem.to_string().as_bytes())?; + hist_file.write_all(elem.to_string().as_bytes())?; Ok(()) } |