Skip to content

Commit c22f67f

Browse files
author
developerworks
committed
Clean up unused import in main.rs
- Inline load_config call path to remove separate import
1 parent 79e7596 commit c22f67f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/main.rs‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
//! binding the command handlers to the public `SupervisorConfig` type.
55
66
use clap::{Parser, Subcommand};
7-
use rust_config_tree::{
8-
cli::{ConfigCommand, handle_config_command},
9-
config::load_config,
10-
};
7+
use rust_config_tree::cli::{ConfigCommand, handle_config_command};
118
use rust_supervisor::config::configurable::SupervisorConfig;
129
use std::path::PathBuf;
1310

@@ -62,7 +59,7 @@ fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
6259
match cli.command.unwrap_or(Command::Run { config: None }) {
6360
Command::Run { config } => {
6461
let config_path = config.unwrap_or(default_config_path);
65-
let config = load_config::<SupervisorConfig>(&config_path)?;
62+
let config = rust_config_tree::config::load_config::<SupervisorConfig>(&config_path)?;
6663
println!("config path: {}", config_path.display());
6764
println!("strategy: {:?}", config.supervisor.strategy);
6865
println!("children: {}", config.children.len());

0 commit comments

Comments
 (0)