Skip to content

Commit

Permalink
refactor: apply some clippy-suggested changes [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Sep 23, 2024
1 parent 2a3f707 commit 17423ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/sources/buildtools/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i32>()?;

Expand Down
2 changes: 0 additions & 2 deletions src/api/sources/hangar/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ pub enum ReviewState {
PartiallyReviewed,
}

///
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct VersionsFilter {
pub limit: i64,
Expand Down
4 changes: 2 additions & 2 deletions src/api/utils/pathdiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17423ee

Please sign in to comment.