diff --git a/crates/backend/src/choose.rs b/crates/backend/src/choose.rs index 7dbd425e..e7ec87d1 100644 --- a/crates/backend/src/choose.rs +++ b/crates/backend/src/choose.rs @@ -50,33 +50,20 @@ pub struct BackendOptions { /// Other options for this repository (hot and cold part) #[cfg_attr(feature = "clap", clap(skip))] - #[cfg_attr(feature = "merge", merge(strategy = extend))] + #[cfg_attr(feature = "merge", merge(strategy = conflate::hashmap::ignore))] pub options: HashMap, /// Other options for the hot repository #[cfg_attr(feature = "clap", clap(skip))] - #[cfg_attr(feature = "merge", merge(strategy = extend))] + #[cfg_attr(feature = "merge", merge(strategy = conflate::hashmap::ignore))] pub options_hot: HashMap, /// Other options for the cold repository #[cfg_attr(feature = "clap", clap(skip))] - #[cfg_attr(feature = "merge", merge(strategy = extend))] + #[cfg_attr(feature = "merge", merge(strategy = conflate::hashmap::ignore))] pub options_cold: HashMap, } -/// Overwrite the left value with the right value -/// -/// This is used for merging config values, e.g. [`BackendOptions`]. -/// -/// # Arguments -/// -/// * `left` - The left value -/// * `right` - The right value -#[cfg(feature = "merge")] -pub fn extend + IntoIterator>(left: &mut T, right: T) { - left.extend(right); -} - impl BackendOptions { /// Convert the options to backends. ///