Skip to content

Commit

Permalink
chore: Lint rs partially
Browse files Browse the repository at this point in the history
  • Loading branch information
LynithDev committed Dec 8, 2024
1 parent 2bdfd50 commit 3e96059
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/testing/examples/murmur2_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ fn main() {

dbg!(hash);
dbg!(hash as u64);
assert_eq!(hash, 661461369);
assert_eq!(hash, 661_461_369);
}
4 changes: 2 additions & 2 deletions packages/core/src/api/cluster/content/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ pub async fn find_managed_version(
Ok(versions.0
.iter()
.find(|v| {
if package_version.is_some() {
return v.id == *package_version.as_ref().unwrap();
if let Some(package_version) = package_version.as_ref() {
return v.id == *package_version;
}

let check_game_version = game_version
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl State {
}?;

send_ingress(&ingress, 5.0, Some("loading packages")).await?;
let packages = Packages::initialize(&clusters).await;
let packages = Packages::initialize(&clusters);

let ingress_processor = IngressProcessor::new();
let discord_rpc = DiscordRPC::initialize(is_offline || settings.disable_discord)?;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/store/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub struct Packages {
}

impl Packages {
pub async fn initialize(clusters: &Clusters) -> Self {
pub fn initialize(clusters: &Clusters) -> Self {
let mut this = Self { managers: HashMap::new() };

// TODO: This should probably not clone and store the cluster path in like 2 areas
Expand Down

0 comments on commit 3e96059

Please sign in to comment.