From 55e7fe60508c77364f90c3eb2bdd0bd8e35030f8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 15 Dec 2021 02:53:50 -0500 Subject: bump deps --- Cargo.toml | 4 ++-- src/private.rs | 8 ++++---- 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()); } } -- cgit v1.2.3