Refactor using a buffer for reading and a buffer for writing

This commit is contained in:
Nicolas Musset 2021-08-19 13:39:25 +09:00
parent db2be0a36c
commit f8c49ca661
No known key found for this signature in database
GPG key ID: 090B167B09F29DB2
4 changed files with 79 additions and 34 deletions

18
Cargo.lock generated
View file

@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "ansi_term"
version = "0.11.0"
@ -9,6 +11,12 @@ dependencies = [
"winapi",
]
[[package]]
name = "arrayvec"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
[[package]]
name = "atty"
version = "0.2.14"
@ -242,6 +250,7 @@ version = "1.0.1"
dependencies = [
"clap",
"criterion",
"utf8-chars",
]
[[package]]
@ -519,6 +528,15 @@ version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
[[package]]
name = "utf8-chars"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1348d8face79d019be7cbc0198e36bf93e160ddbfaa7bb54c9592627b9ec841"
dependencies = [
"arrayvec",
]
[[package]]
name = "vec_map"
version = "0.8.2"