chore: Lint rs partially
This commit is contained in:
parent
2bdfd50e36
commit
3e9605997b
4 changed files with 5 additions and 5 deletions
|
|
@ -10,5 +10,5 @@ fn main() {
|
||||||
|
|
||||||
dbg!(hash);
|
dbg!(hash);
|
||||||
dbg!(hash as u64);
|
dbg!(hash as u64);
|
||||||
assert_eq!(hash, 661461369);
|
assert_eq!(hash, 661_461_369);
|
||||||
}
|
}
|
||||||
|
|
@ -36,8 +36,8 @@ pub async fn find_managed_version(
|
||||||
Ok(versions.0
|
Ok(versions.0
|
||||||
.iter()
|
.iter()
|
||||||
.find(|v| {
|
.find(|v| {
|
||||||
if package_version.is_some() {
|
if let Some(package_version) = package_version.as_ref() {
|
||||||
return v.id == *package_version.as_ref().unwrap();
|
return v.id == *package_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
let check_game_version = game_version
|
let check_game_version = game_version
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ impl State {
|
||||||
}?;
|
}?;
|
||||||
|
|
||||||
send_ingress(&ingress, 5.0, Some("loading packages")).await?;
|
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 ingress_processor = IngressProcessor::new();
|
||||||
let discord_rpc = DiscordRPC::initialize(is_offline || settings.disable_discord)?;
|
let discord_rpc = DiscordRPC::initialize(is_offline || settings.disable_discord)?;
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ pub struct Packages {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Packages {
|
impl Packages {
|
||||||
pub async fn initialize(clusters: &Clusters) -> Self {
|
pub fn initialize(clusters: &Clusters) -> Self {
|
||||||
let mut this = Self { managers: HashMap::new() };
|
let mut this = Self { managers: HashMap::new() };
|
||||||
|
|
||||||
// TODO: This should probably not clone and store the cluster path in like 2 areas
|
// TODO: This should probably not clone and store the cluster path in like 2 areas
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue