fixing lint issues
Some checks failed
CI / Rustfmt (push) Successful in 23s
CI / Cargo Audit & Deny (push) Successful in 33s
CI / Clippy (push) Failing after 1m55s
CI / Web Blocking Checks (push) Successful in 47s
CI / Security Blocking Checks (push) Successful in 9s
CI / Web Advisory Checks (push) Successful in 30s
CI / Security Advisory Checks (push) Successful in 31s
CI / Tests (push) Failing after 8m6s
Some checks failed
CI / Rustfmt (push) Successful in 23s
CI / Cargo Audit & Deny (push) Successful in 33s
CI / Clippy (push) Failing after 1m55s
CI / Web Blocking Checks (push) Successful in 47s
CI / Security Blocking Checks (push) Successful in 9s
CI / Web Advisory Checks (push) Successful in 30s
CI / Security Advisory Checks (push) Successful in 31s
CI / Tests (push) Failing after 8m6s
This commit is contained in:
@@ -401,8 +401,10 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_effective_format_defaults_to_config() {
|
fn test_effective_format_defaults_to_config() {
|
||||||
let mut config = CliConfig::default();
|
let config = CliConfig {
|
||||||
config.format = "json".to_string();
|
format: "json".to_string(),
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
|
|
||||||
// No CLI override → uses config
|
// No CLI override → uses config
|
||||||
assert_eq!(config.effective_format(None), OutputFormat::Json);
|
assert_eq!(config.effective_format(None), OutputFormat::Json);
|
||||||
@@ -410,8 +412,10 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_effective_format_cli_overrides_config() {
|
fn test_effective_format_cli_overrides_config() {
|
||||||
let mut config = CliConfig::default();
|
let config = CliConfig {
|
||||||
config.format = "json".to_string();
|
format: "json".to_string(),
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
|
|
||||||
// CLI override wins
|
// CLI override wins
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|||||||
Reference in New Issue
Block a user