Skip to content

Commit

Permalink
config: remove PartialEq from AnnotatedValue
Browse files Browse the repository at this point in the history
toml_edit::Value doesn't implement PartialEq.
  • Loading branch information
yuja committed Dec 8, 2024
1 parent 652d163 commit b560e72
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit b560e72

Please sign in to comment.