Skip to content

Commit e9a7fba

Browse files
committed
Merge #71: Add Config::builder method
aea9da2 Add `Config::builder` method (志宇) Pull request description: The intention is to reduce some confusion on how to manipulate `Config`. The alternative is to make `Config` fields public. ACKs for top commit: afilini: ACK aea9da2 Tree-SHA512: 4077e821260c8f6e4bc32a66548e11b1091d384988b392c981102dc3c198a5040831c5feb13b1f7b1a88fd3890d7c44c7516b94f4c2e9cbbc551581c8c72d803
2 parents 866c242 + aea9da2 commit e9a7fba

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)