From 29c3640e5fea0f423357c28e3c221fcaca004ee8 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 31 Jul 2025 15:46:40 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20use=20the=20custom=20Result=20type=20i?= =?UTF-8?q?nstead=20of=20the=20standard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/symlink.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/symlink.rs') diff --git a/src/symlink.rs b/src/symlink.rs index 843115c..68a804f 100644 --- a/src/symlink.rs +++ b/src/symlink.rs @@ -1,7 +1,7 @@ use std::path::PathBuf; use tokio::fs; -use crate::AppImage; +use crate::{AppImage, Result}; #[derive(Debug, Default)] pub struct SymlinkManager {} @@ -10,7 +10,7 @@ impl SymlinkManager { pub fn new() -> Self { Self {} } - pub async fn remove(&self, executable: &str) -> Result<(), Box> { + pub async fn remove(&self, executable: &str) -> Result<()> { let home = std::env::var("HOME")?; let symlink_path = PathBuf::from(home).join(".local/bin").join(executable); @@ -18,7 +18,7 @@ impl SymlinkManager { Ok(()) } - pub async fn create(&self, appimage: &AppImage) -> Result<(), Box> { + pub async fn create(&self, appimage: &AppImage) -> Result<()> { let home = std::env::var("HOME")?; let local_bin = PathBuf::from(home).join(".local/bin"); -- cgit v1.2.3