chore(deps): refresh package locks and Rust warnings

This commit is contained in:
NimBold
2026-07-28 18:29:14 +03:30
parent 7795b3bcf8
commit 5633896d14
8 changed files with 102 additions and 102 deletions
+4 -4
View File
@@ -14,8 +14,8 @@
}, },
"ffmpeg": { "ffmpeg": {
"version": "8.1.2-31-g8c9502e9b0", "version": "8.1.2-31-g8c9502e9b0",
"url": "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2026-07-26-13-28/ffmpeg-n8.1.2-31-g8c9502e9b0-win64-gpl-8.1.zip", "url": "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2026-07-28-13-32/ffmpeg-n8.1.2-31-g8c9502e9b0-win64-gpl-8.1.zip",
"sha256": "2b6a26a3943892dc61ea62545253efc1495580f67346285a6b12713d70c1a2ff" "sha256": "e88033629ebecd56d01e6b5b2e693f07d3ec3ed0d14188fc18d7d0bc9c3e6709"
}, },
"aria2c": { "aria2c": {
"version": "1.37.0", "version": "1.37.0",
@@ -36,8 +36,8 @@
}, },
"ffmpeg": { "ffmpeg": {
"version": "8.1.2-31-g8c9502e9b0", "version": "8.1.2-31-g8c9502e9b0",
"url": "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2026-07-26-13-28/ffmpeg-n8.1.2-31-g8c9502e9b0-linux64-gpl-8.1.tar.xz", "url": "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2026-07-28-13-32/ffmpeg-n8.1.2-31-g8c9502e9b0-linux64-gpl-8.1.tar.xz",
"sha256": "00a4cce5118f477da5d6758630ecd70f71ac7601dca377d819b619613cb577a0" "sha256": "8f61aa8abfc2174bbb60fe0bcf7a23c7940a96d4e34c6694bf0ca48b23ce67f0"
}, },
"aria2c": { "aria2c": {
"version": "1.37.0", "version": "1.37.0",
+4 -4
View File
@@ -37,7 +37,7 @@
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.4", "@vitejs/plugin-react": "^6.0.4",
"autoprefixer": "^10.5.4", "autoprefixer": "^10.5.4",
"postcss": "^8.5.23", "postcss": "^8.5.24",
"tailwindcss": "^4.3.3", "tailwindcss": "^4.3.3",
"typescript": "^7.0.2", "typescript": "^7.0.2",
"vite": "^8.1.5", "vite": "^8.1.5",
@@ -2223,9 +2223,9 @@
} }
}, },
"node_modules/postcss": { "node_modules/postcss": {
"version": "8.5.23", "version": "8.5.24",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.24.tgz",
"integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==", "integrity": "sha512-8RyVklq0owXUTa4xlpzu4l9AaVKIdQvAcOHZWaMh98HgySsUtxRVf/chRe3dsSLqb6i40BzGRzEUddRaI+9TSw==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
+1 -1
View File
@@ -67,7 +67,7 @@
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.4", "@vitejs/plugin-react": "^6.0.4",
"autoprefixer": "^10.5.4", "autoprefixer": "^10.5.4",
"postcss": "^8.5.23", "postcss": "^8.5.24",
"tailwindcss": "^4.3.3", "tailwindcss": "^4.3.3",
"typescript": "^7.0.2", "typescript": "^7.0.2",
"vite": "^8.1.5", "vite": "^8.1.5",
+21 -21
View File
@@ -515,9 +515,9 @@ dependencies = [
[[package]] [[package]]
name = "camino" name = "camino"
version = "1.2.4" version = "1.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f2d30e4173c4026932d51d31d6b0613b1fd3014bf3f9f8943d4ba139c437ba0" checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d"
dependencies = [ dependencies = [
"serde_core", "serde_core",
] ]
@@ -1055,7 +1055,7 @@ dependencies = [
"libc", "libc",
"option-ext", "option-ext",
"redox_users", "redox_users",
"windows-sys 0.59.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -1072,13 +1072,13 @@ dependencies = [
[[package]] [[package]]
name = "displaydoc" name = "displaydoc"
version = "0.2.6" version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f" checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
"syn 2.0.119", "syn 3.0.3",
] ]
[[package]] [[package]]
@@ -1275,7 +1275,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [ dependencies = [
"libc", "libc",
"windows-sys 0.52.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -2761,7 +2761,7 @@ dependencies = [
"png 0.18.1", "png 0.18.1",
"serde", "serde",
"thiserror 2.0.19", "thiserror 2.0.19",
"windows-sys 0.60.2", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -3237,7 +3237,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
dependencies = [ dependencies = [
"libc", "libc",
"windows-sys 0.45.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -3866,7 +3866,7 @@ dependencies = [
"errno", "errno",
"libc", "libc",
"linux-raw-sys", "linux-raw-sys",
"windows-sys 0.52.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -3922,7 +3922,7 @@ dependencies = [
"security-framework", "security-framework",
"security-framework-sys", "security-framework-sys",
"webpki-root-certs", "webpki-root-certs",
"windows-sys 0.52.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -4001,9 +4001,9 @@ dependencies = [
[[package]] [[package]]
name = "schemars" name = "schemars"
version = "1.2.1" version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a"
dependencies = [ dependencies = [
"dyn-clone", "dyn-clone",
"ref-cast", "ref-cast",
@@ -4231,7 +4231,7 @@ dependencies = [
"indexmap 1.9.3", "indexmap 1.9.3",
"indexmap 2.14.0", "indexmap 2.14.0",
"schemars 0.9.0", "schemars 0.9.0",
"schemars 1.2.1", "schemars 1.2.2",
"serde_core", "serde_core",
"serde_json", "serde_json",
"serde_with_macros", "serde_with_macros",
@@ -4409,7 +4409,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [ dependencies = [
"libc", "libc",
"windows-sys 0.60.2", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -5113,7 +5113,7 @@ dependencies = [
"getrandom 0.4.3", "getrandom 0.4.3",
"once_cell", "once_cell",
"rustix", "rustix",
"windows-sys 0.52.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -5432,9 +5432,9 @@ dependencies = [
[[package]] [[package]]
name = "toml_parser" name = "toml_parser"
version = "1.1.2+spec-1.1.0" version = "1.1.3+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
dependencies = [ dependencies = [
"winnow 1.0.4", "winnow 1.0.4",
] ]
@@ -5577,7 +5577,7 @@ dependencies = [
"png 0.18.1", "png 0.18.1",
"serde", "serde",
"thiserror 2.0.19", "thiserror 2.0.19",
"windows-sys 0.60.2", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -5662,7 +5662,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [ dependencies = [
"memoffset 0.9.1", "memoffset 0.9.1",
"tempfile", "tempfile",
"windows-sys 0.60.2", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
@@ -6128,7 +6128,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [ dependencies = [
"windows-sys 0.52.0", "windows-sys 0.61.2",
] ]
[[package]] [[package]]
+1 -1
View File
@@ -436,7 +436,7 @@ fn normalize_download(mut payload: ExtensionRequest) -> Option<ExtensionDownload
let filename = payload.filename.and_then(|value| sanitize_filename(&value)); let filename = payload.filename.and_then(|value| sanitize_filename(&value));
let batch = payload.batch && urls.len() >= 2; let batch = payload.batch && urls.len() >= 2;
let batch_name = batch let batch_name = batch
.then(|| payload.batch_name) .then_some(payload.batch_name)
.flatten() .flatten()
.and_then(|value| { .and_then(|value| {
let value = value.trim().to_string(); let value = value.trim().to_string();
+6 -21
View File
@@ -214,10 +214,11 @@ pub enum Theme {
Nord, Nord,
} }
#[derive(Clone, Debug, Serialize, Deserialize, TS)] #[derive(Clone, Debug, Default, Serialize, Deserialize, TS)]
#[serde(rename_all = "kebab-case")] #[serde(rename_all = "kebab-case")]
#[ts(export, export_to = "../../src/bindings/")] #[ts(export, export_to = "../../src/bindings/")]
pub enum FontFamily { pub enum FontFamily {
#[default]
System, System,
Inter, Inter,
Outfit, Outfit,
@@ -229,16 +230,11 @@ pub enum FontFamily {
Monospace, Monospace,
} }
impl Default for FontFamily { #[derive(Clone, Debug, Default, Serialize, Deserialize, TS)]
fn default() -> Self {
Self::System
}
}
#[derive(Clone, Debug, Serialize, Deserialize, TS)]
#[serde(rename_all = "lowercase")] #[serde(rename_all = "lowercase")]
#[ts(export, export_to = "../../src/bindings/")] #[ts(export, export_to = "../../src/bindings/")]
pub enum WindowControlStyle { pub enum WindowControlStyle {
#[default]
Auto, Auto,
Macos, Macos,
Windows, Windows,
@@ -246,27 +242,16 @@ pub enum WindowControlStyle {
Minimal, Minimal,
} }
impl Default for WindowControlStyle { #[derive(Clone, Debug, Default, Serialize, Deserialize, TS)]
fn default() -> Self {
Self::Auto
}
}
#[derive(Clone, Debug, Serialize, Deserialize, TS)]
#[serde(rename_all = "lowercase")] #[serde(rename_all = "lowercase")]
#[ts(export, export_to = "../../src/bindings/")] #[ts(export, export_to = "../../src/bindings/")]
pub enum CalendarPreference { pub enum CalendarPreference {
#[default]
Gregorian, Gregorian,
Persian, Persian,
Hebrew, Hebrew,
} }
impl Default for CalendarPreference {
fn default() -> Self {
Self::Gregorian
}
}
#[derive(Clone, Debug, Serialize, Deserialize, TS)] #[derive(Clone, Debug, Serialize, Deserialize, TS)]
#[serde(rename_all = "lowercase")] #[serde(rename_all = "lowercase")]
#[ts(export, export_to = "../../src/bindings/")] #[ts(export, export_to = "../../src/bindings/")]
+5 -3
View File
@@ -8851,9 +8851,11 @@ fn observe_aria2_connections_with_epoch(
now, now,
} = sample; } = sample;
if observation.gid != gid || observation.control_epoch != control_epoch { if observation.gid != gid || observation.control_epoch != control_epoch {
let preserved_recovery_attempts = (observation.control_epoch == control_epoch) let preserved_recovery_attempts = if observation.control_epoch == control_epoch {
.then_some(observation.recovery_attempts) observation.recovery_attempts
.unwrap_or_default(); } else {
Default::default()
};
*observation = Aria2ConnectionObservation { *observation = Aria2ConnectionObservation {
gid: gid.to_string(), gid: gid.to_string(),
control_epoch, control_epoch,
+60 -47
View File
@@ -26,17 +26,30 @@ fn stop_is_due(
&& last_stop_key != stop_key && last_stop_key != stop_key
} }
fn overnight_stop_is_due( struct OvernightStopCheck<'a> {
stop_time_enabled: bool, stop_time_enabled: bool,
start_minute: Option<u32>, start_minute: Option<u32>,
stop_minute: Option<u32>, stop_minute: Option<u32>,
current_minute: u32, current_minute: u32,
previous_day_allowed: bool, previous_day_allowed: bool,
last_start_key: &str, last_start_key: &'a str,
previous_start_key: &str, previous_start_key: &'a str,
last_stop_key: &str, last_stop_key: &'a str,
stop_key: &str, stop_key: &'a str,
) -> bool { }
fn overnight_stop_is_due(check: OvernightStopCheck<'_>) -> bool {
let OvernightStopCheck {
stop_time_enabled,
start_minute,
stop_minute,
current_minute,
previous_day_allowed,
last_start_key,
previous_start_key,
last_stop_key,
stop_key,
} = check;
stop_time_enabled stop_time_enabled
&& previous_day_allowed && previous_day_allowed
&& start_minute.zip(stop_minute).is_some_and(|(start, stop)| { && start_minute.zip(stop_minute).is_some_and(|(start, stop)| {
@@ -126,17 +139,17 @@ pub fn spawn_scheduler(
let previous_start_key = previous_day let previous_start_key = previous_day
.map(|day| format!("{}-start", day.format("%Y-%m-%d"))) .map(|day| format!("{}-start", day.format("%Y-%m-%d")))
.unwrap_or_default(); .unwrap_or_default();
let overnight_stop_due = overnight_stop_is_due( let overnight_stop_due = overnight_stop_is_due(OvernightStopCheck {
scheduler.stop_time_enabled, stop_time_enabled: scheduler.stop_time_enabled,
start_minute, start_minute,
stop_minute, stop_minute,
current_minute, current_minute,
previous_day_allowed, previous_day_allowed,
&scheduler_last_start_key, last_start_key: &scheduler_last_start_key,
&previous_start_key, previous_start_key: &previous_start_key,
&scheduler_last_stop_key, last_stop_key: &scheduler_last_stop_key,
&stop_key, stop_key: &stop_key,
); });
if (same_day_stop_due || overnight_stop_due) if (same_day_stop_due || overnight_stop_due)
&& last_emit && last_emit
@@ -159,7 +172,7 @@ pub fn spawn_scheduler(
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::{minute_of_day, overnight_stop_is_due, stop_is_due}; use super::{minute_of_day, overnight_stop_is_due, stop_is_due, OvernightStopCheck};
#[test] #[test]
fn parses_valid_scheduler_times() { fn parses_valid_scheduler_times() {
@@ -199,38 +212,38 @@ mod tests {
#[test] #[test]
fn overnight_stop_uses_the_previous_day_start() { fn overnight_stop_uses_the_previous_day_start() {
assert!(overnight_stop_is_due( assert!(overnight_stop_is_due(OvernightStopCheck {
true, stop_time_enabled: true,
Some(1320), start_minute: Some(1320),
Some(360), stop_minute: Some(360),
420, current_minute: 420,
true, previous_day_allowed: true,
"2026-06-22-start", last_start_key: "2026-06-22-start",
"2026-06-22-start", previous_start_key: "2026-06-22-start",
"", last_stop_key: "",
"2026-06-23-stop", stop_key: "2026-06-23-stop",
)); }));
assert!(!overnight_stop_is_due( assert!(!overnight_stop_is_due(OvernightStopCheck {
true, stop_time_enabled: true,
Some(1320), start_minute: Some(1320),
Some(360), stop_minute: Some(360),
1380, current_minute: 1380,
true, previous_day_allowed: true,
"2026-06-22-start", last_start_key: "2026-06-22-start",
"2026-06-22-start", previous_start_key: "2026-06-22-start",
"", last_stop_key: "",
"2026-06-22-stop", stop_key: "2026-06-22-stop",
)); }));
assert!(!overnight_stop_is_due( assert!(!overnight_stop_is_due(OvernightStopCheck {
true, stop_time_enabled: true,
Some(1320), start_minute: Some(1320),
Some(360), stop_minute: Some(360),
420, current_minute: 420,
false, previous_day_allowed: false,
"2026-06-22-start", last_start_key: "2026-06-22-start",
"2026-06-22-start", previous_start_key: "2026-06-22-start",
"", last_stop_key: "",
"2026-06-23-stop", stop_key: "2026-06-23-stop",
)); }));
} }
} }