mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-21 01:21:18 -08:00
clippy
This commit is contained in:
1 parent
f947dd5c78
commit
3000ea16af
3 files changed
+5
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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, };
|
||||
@@ -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, };
|
||||
Reference in new issue
Block a user