aboutsummaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-14 04:14:44 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-14 04:14:44 -0500
commit585634384a92084412807ed9d10712fdfd561da0 (patch)
tree501afe1768d2b2212e45fce2ad54df4711260cea /src/cell.rs
parent2083eae2c5b480ccad672fb2fbb1b2bb5774a606 (diff)
downloadvt100-rust-585634384a92084412807ed9d10712fdfd561da0.tar.gz
vt100-rust-585634384a92084412807ed9d10712fdfd561da0.zip
also stop using as casts
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cell.rs b/src/cell.rs
index 5f09ffb..3ebf8fc 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -28,7 +28,7 @@ impl PartialEq<Self> for Cell {
impl Cell {
#[inline]
fn len(&self) -> usize {
- (self.len & 0x0f) as usize
+ usize::from(self.len & 0x0f)
}
pub(crate) fn set(&mut self, c: char, a: crate::attrs::Attrs) {