about summary refs log tree commit diff stats
path: root/src/select/cmds.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:35:02 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:35:02 +0200
commite9be4219b63cbb4fdfe8de8779481568a69ceb8a (patch)
treed2568d4e482768c90c625a7a7ffd5a632811ba30 /src/select/cmds.rs
parentrefactor(treewide): Conform to `cargo clippy` (diff)
downloadyt-e9be4219b63cbb4fdfe8de8779481568a69ceb8a.tar.gz
yt-e9be4219b63cbb4fdfe8de8779481568a69ceb8a.zip
style(treewide): Reformat
Diffstat (limited to 'src/select/cmds.rs')
-rw-r--r--src/select/cmds.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/select/cmds.rs b/src/select/cmds.rs
index 31589f2..3a7a800 100644
--- a/src/select/cmds.rs
+++ b/src/select/cmds.rs
@@ -81,5 +81,7 @@ async fn handle_status_change(
 fn compute_priority(line_number: Option<i64>, priority: Option<i64>) -> Option<i64> {
     if let Some(pri) = priority {
         Some(pri)
-    } else { line_number }
+    } else {
+        line_number
+    }
 }