From e6aa02be6bec9c0d867b129668ce99d4af898752 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sun, 23 Mar 2025 01:43:57 +0100 Subject: feat: add PKGBUILD --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index b645e80..336378e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,10 +27,9 @@ use tokio::runtime; use types::{Action, DesignerPane, ElementName, Message, Project}; fn main() -> Result<(), Box> { - let mut args = std::env::args(); - let _ = args.next(); - - let version = args.next().is_some_and(|s| s == "--version" || s == "-V"); + let version = std::env::args() + .nth(1) + .is_some_and(|s| s == "--version" || s == "-V"); if version { println!("iced-builder {}", environment::formatted_version()); -- cgit v1.2.3