diff --git a/src/api/sources/buildtools/mod.rs b/src/api/sources/buildtools/mod.rs index 862fa5b..84c845e 100644 --- a/src/api/sources/buildtools/mod.rs +++ b/src/api/sources/buildtools/mod.rs @@ -83,7 +83,7 @@ pub async fn resolve_compile_steps( args.extend([String::from("--compile"), String::from("craftbukkit")]); } - args.extend(custom_args.into_iter().cloned()); + args.extend(custom_args.iter().cloned()); //let build_number = jar_name.split(&['-', '.']).nth(1).unwrap().parse::()?; diff --git a/src/api/sources/hangar/models.rs b/src/api/sources/hangar/models.rs index 76d2dca..9ffc012 100644 --- a/src/api/sources/hangar/models.rs +++ b/src/api/sources/hangar/models.rs @@ -268,8 +268,6 @@ pub enum ReviewState { PartiallyReviewed, } -/// - #[derive(Debug, Serialize, Deserialize, Clone)] pub struct VersionsFilter { pub limit: i64, diff --git a/src/api/utils/pathdiff.rs b/src/api/utils/pathdiff.rs index e2cbf55..205a4dc 100644 --- a/src/api/utils/pathdiff.rs +++ b/src/api/utils/pathdiff.rs @@ -89,8 +89,8 @@ where }, (None, _) => comps.push(Component::ParentDir), (Some(a), Some(b)) if comps.is_empty() && a == b => (), - (Some(a), Some(b)) if b == Component::CurDir => comps.push(a), - (Some(_), Some(b)) if b == Component::ParentDir => return None, + (Some(a), Some(Component::CurDir)) => comps.push(a), + (Some(_), Some(Component::ParentDir)) => return None, (Some(a), Some(_)) => { comps.push(Component::ParentDir); for _ in itb {