Skip to content

Commit ea50543

Browse files
committed
lint pt 3
1 parent 96b380d commit ea50543

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/format.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,10 @@ jobs:
4747
- name: Setup Packages
4848
uses: ./.github/actions/setup-packages
4949

50+
- name: Create Dummy Dist Directories
51+
run: |
52+
mkdir -p apps/onelauncher/frontend/dist
53+
mkdir -p apps/oneclient/frontend/dist
54+
5055
- name: Run Clippy
5156
run: cargo clippy --all-targets --all-features -- -D warnings

apps/oneclient/desktop/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
129129
ext::updater::init(handle)?;
130130

131131
let win_clone = win;
132-
let _app_handle = handle.clone();
132+
#[allow(unused_variables)]
133+
let app_handle = handle.clone();
133134
tokio::task::spawn(async move {
134135
if let Ok(state) = State::get().await {
135136
let _settings = state.settings.read().await;
@@ -139,7 +140,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
139140
{
140141
win_clone.set_decorations(true).ok();
141142
let win_weak = win_clone.clone();
142-
_app_handle
143+
app_handle
143144
.run_on_main_thread(move || {
144145
#[cfg(target_os = "macos")]
145146
{

apps/oneclient/frontend/src/routes/app/account/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const Route = createFileRoute('/app/account')({
1919
},
2020
async beforeLoad({ context, search }) {
2121
// TODO instead replace this with a refresh access_token function. Waiting on binding from @LynithDev
22-
const { profile, search: validSearch } = search;
22+
const { profile, search: validSearch } = search as AccountsRouteSearchParams;
2323

2424
if (!profile)
2525
return { profileData: null, profile: null, validSearch, playerData: null };

apps/onelauncher/desktop/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
127127

128128
// Initialize window decorations based on settings
129129
let win_clone = win;
130-
let _app_handle = handle.clone();
130+
#[allow(unused_variables)]
131+
let app_handle = handle.clone();
131132
tokio::task::spawn(async move {
132133
if let Ok(state) = State::get().await {
133134
let _settings = state.settings.read().await;
@@ -137,7 +138,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
137138
{
138139
win_clone.set_decorations(true).ok();
139140
let win_weak = win_clone.clone();
140-
_app_handle
141+
app_handle
141142
.run_on_main_thread(move || {
142143
#[cfg(target_os = "macos")]
143144
{

0 commit comments

Comments
 (0)