forked from Deuxfleurs/diplonat
WIP: removed useless '.clone()' in runtime.rs and changed config test file name to config_test.rs
This commit is contained in:
parent
119b58fd79
commit
beefcd7ade
3 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
mod options;
|
||||
#[cfg(test)]
|
||||
mod options_test;
|
||||
mod config_test;
|
||||
mod options;
|
||||
mod runtime;
|
||||
|
||||
pub use options::{
|
||||
|
|
|
@ -46,10 +46,10 @@ pub struct RuntimeConfig {
|
|||
|
||||
impl RuntimeConfig {
|
||||
pub fn new(opts: ConfigOpts) -> Result<Self> {
|
||||
let consul = RuntimeConfigConsul::new(opts.consul.clone())?;
|
||||
let acme = RuntimeConfigAcme::new(opts.acme.clone())?;
|
||||
let firewall = RuntimeConfigFirewall::new(opts.firewall.clone())?;
|
||||
let igd = RuntimeConfigIgd::new(opts.igd.clone())?;
|
||||
let consul = RuntimeConfigConsul::new(opts.consul)?;
|
||||
let acme = RuntimeConfigAcme::new(opts.acme)?;
|
||||
let firewall = RuntimeConfigFirewall::new(opts.firewall)?;
|
||||
let igd = RuntimeConfigIgd::new(opts.igd)?;
|
||||
|
||||
Ok(Self {
|
||||
acme,
|
||||
|
|
Loading…
Reference in a new issue