mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
config: remove PartialEq from AnnotatedValue
toml_edit::Value doesn't implement PartialEq.
This commit is contained in:
parent
652d16369a
commit
b560e72222
1 changed files with 2 additions and 5 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue