mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
style: apply prettier and rustfmt
No behavior changes. Brings three files back in line with the project formatters (CI runs `pnpm format:check` and `cargo fmt --check`).
This commit is contained in:
@@ -553,9 +553,7 @@ fn normalize_providers_dict_entry(
|
||||
}
|
||||
|
||||
/// Collect provider entries living under the v12+ `providers:` dict.
|
||||
fn read_providers_dict_entries(
|
||||
config: &serde_yaml::Value,
|
||||
) -> Vec<(String, serde_json::Value)> {
|
||||
fn read_providers_dict_entries(config: &serde_yaml::Value) -> Vec<(String, serde_json::Value)> {
|
||||
let Some(mapping) = config.get("providers").and_then(|v| v.as_mapping()) else {
|
||||
return Vec::new();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user