nits: refactor
This commit is contained in:
parent
f3e5c478f1
commit
e0ab2d85fb
1 changed files with 1 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use super::toml::ConfigToml;
|
use super::toml::{ConfigToml, ConfigTomlExt};
|
||||||
use crate::error::{anyhow, ensure};
|
use crate::error::{anyhow, ensure};
|
||||||
use ahash::HashMap;
|
use ahash::HashMap;
|
||||||
use clap::Arg;
|
use clap::Arg;
|
||||||
|
|
@ -53,8 +53,6 @@ pub fn parse_opts() -> Result<Opts, anyhow::Error> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
use super::toml::ConfigTomlExt;
|
|
||||||
|
|
||||||
/// Build proxy and app settings from config using ConfigTomlExt
|
/// Build proxy and app settings from config using ConfigTomlExt
|
||||||
pub fn build_settings(config: &ConfigToml) -> Result<(ProxyConfig, AppConfigList), anyhow::Error> {
|
pub fn build_settings(config: &ConfigToml) -> Result<(ProxyConfig, AppConfigList), anyhow::Error> {
|
||||||
config.validate_and_build_settings()
|
config.validate_and_build_settings()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue