Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 194f7a7

Browse files
committed
fix: issues with library
1 parent d94da09 commit 194f7a7

4 files changed

Lines changed: 2 additions & 40 deletions

File tree

.vscode/launch.json

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,6 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
{
8-
"type": "lldb",
9-
"request": "launch",
10-
"name": "Debug executable 'temp'",
11-
"cargo": {
12-
"args": [
13-
"build",
14-
"--bin=temp",
15-
"--package=temp"
16-
],
17-
"filter": {
18-
"name": "temp",
19-
"kind": "bin"
20-
}
21-
},
22-
"args": [],
23-
"cwd": "${workspaceFolder}"
24-
},
25-
{
26-
"type": "lldb",
27-
"request": "launch",
28-
"name": "Debug unit tests in executable 'temp'",
29-
"cargo": {
30-
"args": [
31-
"test",
32-
"--no-run",
33-
"--bin=temp",
34-
"--package=temp"
35-
],
36-
"filter": {
37-
"name": "temp",
38-
"kind": "bin"
39-
}
40-
},
41-
"args": [],
42-
"cwd": "${workspaceFolder}"
43-
},
447
{
458
"type": "lldb",
469
"request": "launch",

src/custom/mojang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub struct AuthInfo {
4646
#[derive(Debug, Deserialize)]
4747
struct MojangResponse {
4848
username: String,
49-
_roles: Vec<String>,
49+
roles: Vec<String>,
5050
access_token: String,
5151
token_type: String,
5252
expires_in: i32,

src/custom/xbox.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ async fn xsts_internal(
140140
.headers(headers)
141141
.send()
142142
.await;
143+
143144
let std::result::Result::Ok(response) = result else {
144145
println!("Part 1");
145146
return Err(XTSError::ResponseError(

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ impl Oauth {
115115
client_secret,
116116
)
117117
.await?;
118-
119118
let xbox = xbox::xbl(&token.access_token).await?;
120119
let xts = xbox::xsts_token(&xbox.token, bedrock_relm).await?;
121120

@@ -240,7 +239,6 @@ impl DeviceCode {
240239
let token = code::authenticate_device(&self.device_code, &self.client_id).await?;
241240
let xbox = xbox::xbl(&token.token).await?;
242241
let xts = xbox::xsts_token(&xbox.token, bedrock_relm).await?;
243-
244242
if bedrock_relm {
245243
Ok(CustomAuthData {
246244
access_token: "null".to_string(),

0 commit comments

Comments
 (0)