aboutsummaryrefslogtreecommitdiff
path: root/rust/src/editor.rs
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-09-17 23:57:46 +0200
committerTom Smeding <tom.smeding@gmail.com>2021-01-28 22:20:13 +0100
commit653c5d682fb23a57cb39255da0164636ddefb7ab (patch)
tree6e8fd948bfb9579a8215c0892b3c12c77bdf007b /rust/src/editor.rs
parentb453b8f7d510940da2fb3b5c1c88f8ba2caa2012 (diff)
rust: Proper authentication data generation
Diffstat (limited to 'rust/src/editor.rs')
-rw-r--r--rust/src/editor.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/rust/src/editor.rs b/rust/src/editor.rs
index 7d83904..6284570 100644
--- a/rust/src/editor.rs
+++ b/rust/src/editor.rs
@@ -1,5 +1,5 @@
-use std::io::Write;
use termion::event::Key;
+use crate::bel;
#[derive(Debug, Default)]
pub struct Editor {
@@ -56,8 +56,7 @@ impl Editor {
}
_ => {
- print!("\x07");
- std::io::stdout().flush().unwrap();
+ bel::bel();
}
};