summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-07-29 10:05:46 +0100
committerNaz <ndpm13@ch-naseem.com>2025-07-29 10:05:46 +0100
commit4357ff2f74c0b0082741af5e1015ef4da334a430 (patch)
treeb83ef63f217ff63567879c40dfffd4f821765b47
parentd3c84b04d7a46735dd19a2dae9448e811a609291 (diff)
🎨style: some formatting here and there
-rw-r--r--README.md2
-rw-r--r--src/args.rs2
-rw-r--r--src/types.rs6
3 files changed, 6 insertions, 4 deletions
diff --git a/README.md b/README.md
index 7ee4327..d634aef 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ cargo install --git https://github.com/ndpm13/zap-rs
```bash
# Install from URL
-zap-rs install --from https://f.sed.lol/wow.AppImage wow
+zap-rs install --from https://f.sed.lol/wow.AppImage wow
# Remove
zap-rs rm neovim
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<String>,
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<dyn std::error::Error>> {
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?;