fixup term tests for set_title cleanup

This commit is contained in:
Wez Furlong committed 2020-01-26 10:02:07 -08:00
1 parent f3e42c3d2a
commit 50caecfd9d
1 file changed
+2 -10
+2 -10
View File
@@ -15,15 +15,11 @@ use termwiz::escape::csi::{Edit, EraseInDisplay, EraseInLine};
use termwiz::escape::{OneBased, OperatingSystemCommand, CSI};
use termwiz::surface::CursorShape;
struct TestHost {
title: String,
}
struct TestHost {}
impl TestHost {
fn new() -> Self {
Self {
title: String::new(),
}
Self {}
}
}
@@ -65,10 +61,6 @@ impl Clipboard for LocalClip {
}
impl TerminalHost for TestHost {
fn set_title(&mut self, title: &str) {
self.title = title.into();
}
fn writer(&mut self) -> &mut dyn std::io::Write {
self
}