You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EnvTestConfig type contains feature flags that can be enabled/disabled to control how the test Env behaves. Because the type has a list of pub fields it's not possible to add new fields to the config between major versions, because that would break pattern matching of the type, and value creation that requires all fields to be specified.
What would you like to see?
Make EnvTestConfig internals private and add functions.
Suggest the following interface:
Before
let config = EnvTestConfig{capture_snapshot_at_drop:false};let env = Env::new_with_config(config);
After
let config = EnvTestConfig::default().set_capture_snapshot_at_drop(false);let env = Env::new_with_config(config);
The text was updated successfully, but these errors were encountered:
What problem does your feature solve?
The EnvTestConfig type contains feature flags that can be enabled/disabled to control how the test Env behaves. Because the type has a list of pub fields it's not possible to add new fields to the config between major versions, because that would break pattern matching of the type, and value creation that requires all fields to be specified.
What would you like to see?
Make EnvTestConfig internals private and add functions.
Suggest the following interface:
Before
After
The text was updated successfully, but these errors were encountered: