lint pt 3
This commit is contained in:
parent
96b380db25
commit
ea5054395b
4 changed files with 12 additions and 5 deletions
5
.github/workflows/format.yml
vendored
5
.github/workflows/format.yml
vendored
|
|
@ -47,5 +47,10 @@ jobs:
|
|||
- name: Setup Packages
|
||||
uses: ./.github/actions/setup-packages
|
||||
|
||||
- name: Create Dummy Dist Directories
|
||||
run: |
|
||||
mkdir -p apps/onelauncher/frontend/dist
|
||||
mkdir -p apps/oneclient/frontend/dist
|
||||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
|
|
|||
|
|
@ -129,7 +129,8 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
|
|||
ext::updater::init(handle)?;
|
||||
|
||||
let win_clone = win;
|
||||
let _app_handle = handle.clone();
|
||||
#[allow(unused_variables)]
|
||||
let app_handle = handle.clone();
|
||||
tokio::task::spawn(async move {
|
||||
if let Ok(state) = State::get().await {
|
||||
let _settings = state.settings.read().await;
|
||||
|
|
@ -139,7 +140,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
|
|||
{
|
||||
win_clone.set_decorations(true).ok();
|
||||
let win_weak = win_clone.clone();
|
||||
_app_handle
|
||||
app_handle
|
||||
.run_on_main_thread(move || {
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export const Route = createFileRoute('/app/account')({
|
|||
},
|
||||
async beforeLoad({ context, search }) {
|
||||
// TODO instead replace this with a refresh access_token function. Waiting on binding from @LynithDev
|
||||
const { profile, search: validSearch } = search;
|
||||
const { profile, search: validSearch } = search as AccountsRouteSearchParams;
|
||||
|
||||
if (!profile)
|
||||
return { profileData: null, profile: null, validSearch, playerData: null };
|
||||
|
|
|
|||
|
|
@ -127,7 +127,8 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
|
|||
|
||||
// Initialize window decorations based on settings
|
||||
let win_clone = win;
|
||||
let _app_handle = handle.clone();
|
||||
#[allow(unused_variables)]
|
||||
let app_handle = handle.clone();
|
||||
tokio::task::spawn(async move {
|
||||
if let Ok(state) = State::get().await {
|
||||
let _settings = state.settings.read().await;
|
||||
|
|
@ -137,7 +138,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
|
|||
{
|
||||
win_clone.set_decorations(true).ok();
|
||||
let win_weak = win_clone.clone();
|
||||
_app_handle
|
||||
app_handle
|
||||
.run_on_main_thread(move || {
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue