From b560e722229619cd31f9fd90ebf97e5351ed05f9 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 29 Nov 2024 14:44:28 +0900 Subject: [PATCH] config: remove PartialEq from AnnotatedValue toml_edit::Value doesn't implement PartialEq. --- cli/src/config.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cli/src/config.rs b/cli/src/config.rs index b4b6a29ac7..8dcc1f493d 100644 --- a/cli/src/config.rs +++ b/cli/src/config.rs @@ -88,7 +88,7 @@ pub enum ConfigEnvError { } /// Configuration variable with its source information. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug)] pub struct AnnotatedValue { /// Dotted name path to the configuration variable. pub name: ConfigNamePathBuf, @@ -748,10 +748,7 @@ mod tests { #[test] fn test_resolved_config_values_empty() { let config = StackedConfig::empty(); - assert_eq!( - resolved_config_values(&config, &ConfigNamePathBuf::root()), - [] - ); + assert!(resolved_config_values(&config, &ConfigNamePathBuf::root()).is_empty()); } #[test]