mirror of https://github.com/rwf2/Rocket.git
Add TODO about improving builder finalize error.
This commit is contained in:
parent
a2f378ab88
commit
c6fbc44888
|
@ -90,6 +90,7 @@ impl ConfigBuilder {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Collect all errors into one `Several` `ConfigError` variant.
|
||||||
pub fn finalize(self) -> Result<Config> {
|
pub fn finalize(self) -> Result<Config> {
|
||||||
let mut config = Config::new(self.environment)?;
|
let mut config = Config::new(self.environment)?;
|
||||||
config.set_address(self.address)?;
|
config.set_address(self.address)?;
|
||||||
|
|
Loading…
Reference in New Issue