aboutsummaryrefslogtreecommitdiffstats
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/input.rs b/src/input.rs
index 01d0b11..30262d2 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -15,15 +15,9 @@ impl Calculator {
KeyCode::Char('q') => {
return Signal::Exit;
}
- KeyCode::Char('j' | 'k') => {
- self.swap();
- }
- KeyCode::Char(c) => {
- self.push_to_buffer(c);
- }
- KeyCode::Enter => {
- self.push_buffer_to_stack();
- }
+ KeyCode::Char('j' | 'k') => self.swap(),
+ KeyCode::Char(c) => self.push_to_buffer(c),
+ KeyCode::Enter => self.push_buffer_to_stack(),
KeyCode::Backspace => {
self.input_buffer.pop();
}