removed legacy code and clippy fixes + fixed ci
Release / Build and Release (push) Failing after 38s

This commit is contained in:
2026-04-01 14:01:16 +02:00
parent bd18bbf866
commit 7a8f70938e
9 changed files with 22 additions and 61 deletions
-18
View File
@@ -26,8 +26,6 @@ pub struct Config {
#[serde(default)]
pub power: PowerConfig,
#[serde(default)]
pub buds: BudsConfig,
#[serde(default)]
pub audio: AudioConfig,
#[serde(default)]
pub bt: BtConfig,
@@ -158,21 +156,6 @@ impl Default for PowerConfig {
}
}
#[derive(Deserialize)]
pub struct BudsConfig {
pub format: String,
pub format_disconnected: String,
}
impl Default for BudsConfig {
fn default() -> Self {
Self {
format: "{left} | {right} | {anc}".to_string(),
format_disconnected: "<span size='large'></span>".to_string(),
}
}
}
#[derive(Deserialize)]
pub struct AudioConfig {
pub format_sink_unmuted: String,
@@ -275,7 +258,6 @@ impl Config {
validate_format("disk", &self.disk.format, &["mount", "used", "total"]);
validate_format("pool", &self.pool.format, &["used", "total"]);
validate_format("power", &self.power.format, &["percentage", "icon"]);
validate_format("buds", &self.buds.format, &["left", "right", "anc"]);
validate_format(
"audio.sink_unmuted",
&self.audio.format_sink_unmuted,