aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-08-06 21:15:50 -0400
committerJesse Luehrs <doy@tozt.net>2023-08-06 21:15:50 -0400
commit1e4014aa72a7552d2f69b81ad89d56e035354041 (patch)
tree047da0aa3c06a5ac13db7eb3f2f4cbc38f820764 /src/term.rs
parent7a3b74ce507022c1ab9c457553506f5d4dec29af (diff)
downloadvt100-rust-1e4014aa72a7552d2f69b81ad89d56e035354041.tar.gz
vt100-rust-1e4014aa72a7552d2f69b81ad89d56e035354041.zip
clippyHEADmain
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs
index 99ca266..33a9d18 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -365,7 +365,7 @@ impl MoveFromTo {
impl BufWrite for MoveFromTo {
fn write_buf(&self, buf: &mut Vec<u8>) {
if self.to.row == self.from.row + 1 && self.to.col == 0 {
- crate::term::Crlf::default().write_buf(buf);
+ crate::term::Crlf.write_buf(buf);
} else if self.from.row == self.to.row && self.from.col < self.to.col
{
crate::term::MoveRight::new(self.to.col - self.from.col)