Skip to content

Commit aea9da2

Browse files
committed
Add Config::builder method
The intention is to reduce some confusion on how to manipulate Config. The alternative is to make Config fields public.
1 parent 866c242 commit aea9da2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ impl Config {
116116
pub fn validate_domain(&self) -> bool {
117117
self.validate_domain
118118
}
119+
120+
pub fn builder() -> ConfigBuilder {
121+
ConfigBuilder::new()
122+
}
119123
}
120124

121125
impl Default for Config {

0 commit comments

Comments
 (0)