chore: typo fix and formatting tidyups

This commit is contained in:
Alejandro González
2025-04-11 23:26:23 +02:00
parent e410a07cac
commit f210de563d
2 changed files with 4 additions and 4 deletions

View File

@@ -655,7 +655,7 @@ pub async fn launch_minecraft(
if std::env::var("CARGO").is_ok() { if std::env::var("CARGO").is_ok() {
command.env_remove("DYLD_FALLBACK_LIBRARY_PATH"); command.env_remove("DYLD_FALLBACK_LIBRARY_PATH");
} }
// Java options should be set in instance options (the existence of _JAVA_OPTIONS overwites them) // Java options should be set in instance options (the existence of _JAVA_OPTIONS overwrites them)
command.env_remove("_JAVA_OPTIONS"); command.env_remove("_JAVA_OPTIONS");
command.envs(env_args); command.envs(env_args);

View File

@@ -23,7 +23,7 @@ use uuid::Uuid;
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
pub enum MinecraftAuthStep { pub enum MinecraftAuthStep {
GetDeviceToken, GetDeviceToken,
SisuAuthenicate, SisuAuthenticate,
GetOAuthToken, GetOAuthToken,
RefreshOAuthToken, RefreshOAuthToken,
SisuAuthorize, SisuAuthorize,
@@ -639,7 +639,7 @@ async fn sisu_authenticate(
"TitleId": "1794566092", "TitleId": "1794566092",
}), }),
key, key,
MinecraftAuthStep::SisuAuthenicate, MinecraftAuthStep::SisuAuthenticate,
current_date, current_date,
) )
.await?; .await?;
@@ -967,7 +967,7 @@ async fn minecraft_entitlements(
.bearer_auth(token) .bearer_auth(token)
.send() .send()
}) })
.await.map_err(|source| MinecraftAuthenticationError::Request { source, step: MinecraftAuthStep::MinecraftEntitlements })?; .await.map_err(|source| MinecraftAuthenticationError::Request { source, step: MinecraftAuthStep::MinecraftEntitlements })?;
let status = res.status(); let status = res.status();
let text = res.text().await.map_err(|source| { let text = res.text().await.map_err(|source| {