From e0ab2d85fb17ba4d6036fbae2a10374a02fd4f64 Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Tue, 20 May 2025 22:04:03 +0900 Subject: [PATCH] nits: refactor --- rpxy-bin/src/config/parse.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rpxy-bin/src/config/parse.rs b/rpxy-bin/src/config/parse.rs index d139354..aa10795 100644 --- a/rpxy-bin/src/config/parse.rs +++ b/rpxy-bin/src/config/parse.rs @@ -1,4 +1,4 @@ -use super::toml::ConfigToml; +use super::toml::{ConfigToml, ConfigTomlExt}; use crate::error::{anyhow, ensure}; use ahash::HashMap; use clap::Arg; @@ -53,8 +53,6 @@ pub fn parse_opts() -> Result { }) } -use super::toml::ConfigTomlExt; - /// Build proxy and app settings from config using ConfigTomlExt pub fn build_settings(config: &ConfigToml) -> Result<(ProxyConfig, AppConfigList), anyhow::Error> { config.validate_and_build_settings()