diff options
Diffstat (limited to 'src/types.rs')
| -rw-r--r-- | src/types.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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?; |
