From 3000ea16af9bb9d2ac46ecd7e11afab67db61c57 Mon Sep 17 00:00:00 2001 From: 7w1 Date: Wed, 22 Jul 2026 11:38:34 -0500 Subject: [PATCH] clippy --- src-tauri/src/network/media_protocol.rs | 3 +++ src/app/generated/tauri/desktop/DesktopRuntimeState.ts | 2 +- src/app/generated/tauri/desktop/DesktopSettings.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/network/media_protocol.rs b/src-tauri/src/network/media_protocol.rs index 5c6712b8b..57960fec8 100644 --- a/src-tauri/src/network/media_protocol.rs +++ b/src-tauri/src/network/media_protocol.rs @@ -222,6 +222,7 @@ async fn ensure_cached( .await } +#[allow(clippy::too_many_arguments)] async fn ensure_cached_with_limits( state: &MediaSessionState, session: &MediaSession, @@ -305,6 +306,7 @@ async fn ensure_cached_with_limits( } } +#[allow(clippy::too_many_arguments)] async fn fetch_and_cache( state: &MediaSessionState, session: &MediaSession, @@ -409,6 +411,7 @@ async fn write_cache( .unwrap_or(false) } +#[allow(dead_code)] fn fits_in_cache(len: u64) -> bool { len <= MAX_CACHE_BYTES } diff --git a/src/app/generated/tauri/desktop/DesktopRuntimeState.ts b/src/app/generated/tauri/desktop/DesktopRuntimeState.ts index b0640f018..b5561254a 100644 --- a/src/app/generated/tauri/desktop/DesktopRuntimeState.ts +++ b/src/app/generated/tauri/desktop/DesktopRuntimeState.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type DesktopRuntimeState = { trayAvailable: boolean }; +export type DesktopRuntimeState = { trayAvailable: boolean, }; diff --git a/src/app/generated/tauri/desktop/DesktopSettings.ts b/src/app/generated/tauri/desktop/DesktopSettings.ts index 98fb9dcdf..4367a6ccc 100644 --- a/src/app/generated/tauri/desktop/DesktopSettings.ts +++ b/src/app/generated/tauri/desktop/DesktopSettings.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type DesktopSettings = { closeToBackgroundOnClose: boolean; showSystemTrayIcon: boolean }; +export type DesktopSettings = { closeToBackgroundOnClose: boolean, showSystemTrayIcon: boolean, };