aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
parente7460a17474c679e6b25d9184848c1b1ef11a433 (diff)
downloadtextmode-55e7fe60508c77364f90c3eb2bdd0bd8e35030f8.tar.gz
textmode-55e7fe60508c77364f90c3eb2bdd0bd8e35030f8.zip
bump deps
Diffstat (limited to 'src')
-rw-r--r--src/private.rs8
1 files changed, 4 insertions, 4 deletions
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());
}
}