summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-02-12 23:17:12 +0100
committerpml68 <contact@pml68.dev>2025-02-12 23:17:12 +0100
commit5d92a6cb92f85555acdf0e57bffe0e120f43b2c0 (patch)
tree3e2633b62f20df2245a05181dfffda20e5a86c3f /src/main.rs
parentstyle: rename `DesignerPage` to `DesignerPane` (diff)
downloadiced-builder-5d92a6cb92f85555acdf0e57bffe0e120f43b2c0.tar.gz
chore: update dependencies
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index f826c36..6301682 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -30,10 +30,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut args = std::env::args();
let _ = args.next();
- let version = args
- .next()
- .map(|s| s == "--version" || s == "-V")
- .unwrap_or_default();
+ let version = args.next().is_some_and(|s| s == "--version" || s == "-V");
if version {
println!("{}", env!("CARGO_PKG_VERSION"));