aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-15 02:53:50 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-15 02:53:50 -0500
commit55e7fe60508c77364f90c3eb2bdd0bd8e35030f8 (patch)
treeebf5e35772cbc9e7758c261062d70a04c5c24a50
parente7460a17474c679e6b25d9184848c1b1ef11a433 (diff)
downloadtextmode-55e7fe60508c77364f90c3eb2bdd0bd8e35030f8.tar.gz
textmode-55e7fe60508c77364f90c3eb2bdd0bd8e35030f8.zip
bump deps
-rw-r--r--Cargo.toml4
-rw-r--r--src/private.rs8
2 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 1dd1f26..6a9f0b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["asynchronous", "command-line-interface"]
license = "MIT"
[dependencies]
-itoa = "0.4.8"
+itoa = "1.0.1"
nix = "0.23.0"
terminal_size = "0.1.17"
vt100 = "0.14.0"
@@ -28,6 +28,6 @@ async = ["blocking", "futures-lite"]
assert_cmd = "2.0.2"
assert_fs = "1.0.6"
escargot = "0.5.6"
-libc = "0.2.109"
+libc = "0.2.112"
pty-process = { version = "0.1.1", features = ["backend-smol"] }
smol = "1.2.5"
diff --git a/src/private.rs b/src/private.rs
index add5aa1..87e281c 100644
--- a/src/private.rs
+++ b/src/private.rs
@@ -5,13 +5,13 @@ pub trait Output {
fn next_mut(&mut self) -> &mut vt100::Parser;
fn write_u16(&mut self, i: u16) {
- // vt100::Parser::write can never fail
- itoa::write(self.next_mut(), i).unwrap();
+ let mut itoa_buf = itoa::Buffer::new();
+ self.next_mut().process(itoa_buf.format(i).as_bytes());
}
fn write_u8(&mut self, i: u8) {
- // vt100::Parser::write can never fail
- itoa::write(self.next_mut(), i).unwrap();
+ let mut itoa_buf = itoa::Buffer::new();
+ self.next_mut().process(itoa_buf.format(i).as_bytes());
}
}