fix(config): update variable names and remove unused imports

Refactor variable names to follow snake_case convention and remove unused imports across multiple files to improve code readability and maintainability.
This commit is contained in:
2025-01-12 15:57:01 -05:00
parent f241bf793e
commit 04db8103c4
10 changed files with 74 additions and 65 deletions

View File

@@ -1,4 +1,4 @@
use std::{sync::Arc, time::Duration};
use std::sync::Arc;
use crate::{
config::{SshConfigManager, SshCredentials, SshOPNSenseShell},

View File

@@ -12,8 +12,8 @@ use russh::{
Channel,
};
use russh_keys::key;
use russh_sftp::{client::SftpSession, protocol::OpenFlags};
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use russh_sftp::client::SftpSession;
use tokio::io::AsyncWriteExt;
use crate::{config::SshCredentials, Error};

View File

@@ -1,8 +1,6 @@
use log::info;
use opnsense_config_xml::MaybeString;
use opnsense_config_xml::Range;
use opnsense_config_xml::StaticMap;
use std::cmp::Ordering;
use std::net::Ipv4Addr;
use std::sync::Arc;

View File

@@ -1,6 +1,5 @@
use opnsense_config_xml::{Host, OPNsense};
use crate::config::OPNsenseShell;
pub struct DnsConfig<'a> {
opnsense: &'a mut OPNsense,