Skip to content

Commit

Permalink
cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Jan 15, 2025
1 parent fa75b81 commit b8136ca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/commands/check_command.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{fs::File, path::Path};

use crate::hmm::haxelib::{Haxelib, HaxelibType};
use crate::hmm::{self, dependencies::Dependancies};
use crate::hmm::{dependencies::Dependancies};
use anyhow::{anyhow, Context, Result};
use console::Emoji;
use gix::hash::Prefix;
Expand Down
6 changes: 2 additions & 4 deletions src/commands/haxelib_command.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
use std::path::PathBuf;

use anyhow::{anyhow, Ok, Result};
use gix::actor::signature::decode;
use reqwest::blocking::Client;

use crate::{
commands,
hmm::{
self,
dependencies::Dependancies,
haxelib::{self, Haxelib, HaxelibType},
json,
haxelib::{Haxelib, HaxelibType},
},
};

Expand Down Expand Up @@ -54,7 +52,7 @@ pub fn install_haxelib(

println!("Latest version of {} is {}", name, decoded_resp);

if (decoded_resp.starts_with("No such Project")) {
if decoded_resp.starts_with("No such Project") {
return Err(anyhow!("{}", decoded_resp)); // this haxelib doesn't exist
}

Expand Down
1 change: 0 additions & 1 deletion src/commands/install_command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::commands::check_command::InstallType;
use crate::hmm;
use crate::hmm::dependencies::Dependancies;
use crate::hmm::haxelib::Haxelib;
use crate::hmm::haxelib::HaxelibType;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/remove_command.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{anyhow, Context, Result};
use anyhow::Result;

pub fn remove_haxelibs() -> Result<()> {
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub fn run() -> Result<()> {
Commands::Haxelib { name, version } => {
commands::haxelib_command::install_haxelib(&name, &version, deps, path)?
}
Commands::Remove { lib } => commands::remove_command::remove_haxelibs()?,
Commands::Remove { lib: _ } => commands::remove_command::remove_haxelibs()?,
}
Ok(())
}

0 comments on commit b8136ca

Please sign in to comment.