From 4357ff2f74c0b0082741af5e1015ef4da334a430 Mon Sep 17 00:00:00 2001 From: Naz Date: Tue, 29 Jul 2025 10:05:46 +0100 Subject: =?UTF-8?q?=F0=9F=8E=A8style:=20some=20formatting=20here=20and=20t?= =?UTF-8?q?here?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/args.rs | 2 +- src/types.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/args.rs b/src/args.rs index 03f6b51..39354f6 100644 --- a/src/args.rs +++ b/src/args.rs @@ -30,7 +30,7 @@ pub struct InstallArgs { /// Provide a repository slug, or a direct URL to an appimage. #[arg(long)] pub from: String, - + /// Name of the executable #[arg(long)] pub executable: Option, diff --git a/src/types.rs b/src/types.rs index fef9071..3947bfa 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,5 +1,5 @@ use futures_util::StreamExt; -use serde::{Serialize, Deserialize}; +use serde::{Deserialize, Serialize}; use std::path::PathBuf; use tokio::{fs, io::AsyncWriteExt}; @@ -96,7 +96,9 @@ impl AppImage { } pub async fn remove(&self) -> Result<(), Box> { let home = std::env::var("HOME")?; - let symlink_path = PathBuf::from(home).join(".local/bin").join(&self.executable); + let symlink_path = PathBuf::from(home) + .join(".local/bin") + .join(&self.executable); let index_path = index_dir().join(format!("{}.json", &self.executable)); fs::remove_file(&self.file_path).await?; -- cgit v1.2.3