Add a default impl for chainprovider.
@@ -505,6 +505,12 @@ impl ChainProvider {
}
}
+impl Default for ChainProvider {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
/// This is a helper function as Option<T>::filter is not yet stable (see issue #45860).
/// <https://github.com/rust-lang/rfcs/issues/2036> also affects the implementation of this.
fn non_empty_env_var(name: &str) -> Option<String> {
