Make settings::Flags::new consume the Builder.
This makes it more clear what the relationship is between the Builder and the resulting Flags.
This commit is contained in:
@@ -101,7 +101,7 @@ pub struct DummyEnvironment {
|
||||
impl DummyEnvironment {
|
||||
/// Allocates the data structures with default flags.
|
||||
pub fn default() -> Self {
|
||||
Self::with_flags(settings::Flags::new(&settings::builder()))
|
||||
Self::with_flags(settings::Flags::new(settings::builder()))
|
||||
}
|
||||
|
||||
/// Allocates the data structures with the given flags.
|
||||
|
||||
Reference in New Issue
Block a user