Skip to content

Commit d9e66a4

Browse files
committed
Some clone removals
1 parent 3d59667 commit d9e66a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "2a-emulator"
3-
version = "3.0.4"
3+
version = "3.0.5"
44
authors = ["Malte Tammena <[email protected]>"]
55
edition = "2018"
66

src/machine/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ impl Machine {
302302
// ------------------------------------------------------------
303303
// Use microprogram word from last iteration
304304
// ------------------------------------------------------------
305-
let mp_ram_out = self.mp_ram.get().clone();
305+
let mp_ram_out = self.mp_ram.get();
306306
// Safe MAC3 for later
307307
self.instruction_done = mp_ram_out.contains(MP28BitWord::MAC3);
308308
let mut sig = Signal::new(&mp_ram_out, &self.current_instruction);

src/tui/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ impl Tui {
118118
fn handle_event(&mut self) {
119119
if let Some(event) = self.events.next_key() {
120120
use KeyEvent::*;
121+
trace!("{:?}", event);
121122
match event {
122123
Ctrl('c') => self.is_main_loop_running = false,
123124
Enter => {
@@ -148,11 +149,10 @@ impl Tui {
148149
}
149150
Home | End | Tab | BackTab | Backspace | Left | Right | Up | Down | Delete
150151
| Char(_) => {
151-
self.input_field.handle(event.clone());
152+
self.input_field.handle(event);
152153
}
153154
_ => warn!("TUI cannot handle event {:?}", event),
154155
}
155-
trace!("{:?}", event);
156156
}
157157
}
158158
/// Handle the input field after an 'Enter'.

0 commit comments

Comments
 (0)