Skip to content

Commit

Permalink
feat: Updated fluere-plugin/src/downloader.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 2, 2024
1 parent e98e084 commit 0568f4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fluere-plugin/src/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ pub fn download_plugin_from_github(repo_name: &str) -> Result<(), std::io::Error
let url = format!("https://github.com/{}.git", repo_name);
let path = home_cache_path()?;
let cd_cmd = format!("cd {}", path.display());

Check warning on line 9 in fluere-plugin/src/downloader.rs

View workflow job for this annotation

GitHub Actions / clippy

unused variable: `cd_cmd`

warning: unused variable: `cd_cmd` --> fluere-plugin/src/downloader.rs:9:9 | 9 | let cd_cmd = format!("cd {}", path.display()); | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cd_cmd` | = note: `#[warn(unused_variables)]` on by default
if !path?.exists() {
std::fs::create_dir_all(path?.clone())?;
if !path.exists() {
std::fs::create_dir_all(path.clone())?;
}
let repository_path = Path::new(&path?);
let repository_path = Path::new(&path);

match git2::Repository::open(repository_path) {
Ok(repo) => {
Expand Down

0 comments on commit 0568f4e

Please sign in to comment.