summaryrefslogtreecommitdiff
path: root/src/ui.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2023-10-16 14:20:15 +0200
committerSanto Cariotti <santo@dcariotti.me>2023-10-16 14:20:15 +0200
commit9df59059f0c1b3c123b1ae5be49e12418302ccea (patch)
tree4d3714629aec359e497ffceeaccd5392fde2886f /src/ui.rs
parent8c0c901fb1c508ba878aeaf371084daeebe52a24 (diff)
Style with clippy
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.rs b/src/ui.rs
index e6c8e1b..cf8078f 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -63,11 +63,11 @@ impl UI {
let mut terminal = Terminal::new(CrosstermBackend::new(stdout()))?;
let mut have_to_print = true;
- let mut have_to_trace = !args.command.is_some();
+ let mut have_to_trace = args.command.is_none();
let mut should_quit = false;
if args.command.is_some() {
- let registers = trace(pid, &args)?;
+ let registers = trace(pid, args)?;
for register in registers {
self.add_line(register);
}