fix: format and lint
CI / Format (push) Successful in 48s
CI / Test (push) Failing after 7m9s
CI / Check (push) Successful in 12m6s
CI / Clippy (push) Successful in 12m10s

This commit is contained in:
Guillaume GRABÉ
2026-06-08 23:51:29 +02:00
parent 6400518beb
commit 1302ce412c
27 changed files with 563 additions and 395 deletions
+8 -8
View File
@@ -85,10 +85,10 @@ fn parse_plugins_config(config: &str) -> Result<Vec<PluginConfig>, Box<dyn std::
// Section header [plugins.name]
if line.starts_with('[') && line.ends_with(']') {
// Save previous plugin if exists
if let Some(plugin_data) = current_plugin.take() {
if let Some(plugin) = build_plugin_config(&current_section, plugin_data) {
plugins.push(plugin);
}
if let Some(plugin_data) = current_plugin.take()
&& let Some(plugin) = build_plugin_config(&current_section, plugin_data)
{
plugins.push(plugin);
}
current_section = line[1..line.len() - 1].to_string();
@@ -115,10 +115,10 @@ fn parse_plugins_config(config: &str) -> Result<Vec<PluginConfig>, Box<dyn std::
}
// Don't forget the last plugin
if let Some(plugin_data) = current_plugin.take() {
if let Some(plugin) = build_plugin_config(&current_section, plugin_data) {
plugins.push(plugin);
}
if let Some(plugin_data) = current_plugin.take()
&& let Some(plugin) = build_plugin_config(&current_section, plugin_data)
{
plugins.push(plugin);
}
Ok(plugins)