From a0a116cbba6205db323bb9b4272e63f197634297 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Wed, 22 Mar 2023 14:36:36 -0400 Subject: [PATCH] cargo-fix --- tfclient/src/apiworker.rs | 2 +- tfclient/src/daemon.rs | 4 ++-- tfclient/src/nebulaworker.rs | 2 +- tfclient/src/service/entry.rs | 2 +- tfclient/src/service/macos.rs | 8 ++++---- tfclient/src/service/runit.rs | 8 ++++---- tfclient/src/service/windows.rs | 8 ++++---- tfclient/src/socketworker.rs | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tfclient/src/apiworker.rs b/tfclient/src/apiworker.rs index 8948166..134c085 100644 --- a/tfclient/src/apiworker.rs +++ b/tfclient/src/apiworker.rs @@ -6,6 +6,6 @@ pub enum APIWorkerMessage { } -pub fn apiworker_main(config: TFClientConfig, transmitters: ThreadMessageSender, rx: Receiver) { +pub fn apiworker_main(_config: TFClientConfig, _transmitters: ThreadMessageSender, _rx: Receiver) { } \ No newline at end of file diff --git a/tfclient/src/daemon.rs b/tfclient/src/daemon.rs index 8918fab..c0623d6 100644 --- a/tfclient/src/daemon.rs +++ b/tfclient/src/daemon.rs @@ -1,8 +1,8 @@ use std::sync::mpsc; use std::sync::mpsc::Sender; use std::thread; -use log::{error, info, warn}; -use url::Url; +use log::{error, info}; + use crate::apiworker::{apiworker_main, APIWorkerMessage}; use crate::config::load_config; use crate::nebulaworker::{nebulaworker_main, NebulaWorkerMessage}; diff --git a/tfclient/src/nebulaworker.rs b/tfclient/src/nebulaworker.rs index 80a0551..5549775 100644 --- a/tfclient/src/nebulaworker.rs +++ b/tfclient/src/nebulaworker.rs @@ -8,6 +8,6 @@ pub enum NebulaWorkerMessage { } -pub fn nebulaworker_main(config: TFClientConfig, transmitter: ThreadMessageSender, rx: Receiver) { +pub fn nebulaworker_main(_config: TFClientConfig, _transmitter: ThreadMessageSender, _rx: Receiver) { } \ No newline at end of file diff --git a/tfclient/src/service/entry.rs b/tfclient/src/service/entry.rs index 65e8da9..beff268 100644 --- a/tfclient/src/service/entry.rs +++ b/tfclient/src/service/entry.rs @@ -1,5 +1,5 @@ use std::env::current_exe; -use log::{error, info, warn}; +use log::{error, info}; use crate::service::detect::detect_service; use crate::util::check_server_url; diff --git a/tfclient/src/service/macos.rs b/tfclient/src/service/macos.rs index 765ec6f..c1c7c8d 100644 --- a/tfclient/src/service/macos.rs +++ b/tfclient/src/service/macos.rs @@ -4,19 +4,19 @@ use crate::service::ServiceManager; pub struct OSXServiceManager {} impl ServiceManager for OSXServiceManager { - fn install(&self, bin_path: PathBuf, name: &str, server_url: &str) -> Result<(), Box> { + fn install(&self, _bin_path: PathBuf, _name: &str, _server_url: &str) -> Result<(), Box> { todo!() } - fn uninstall(&self, name: &str) -> Result<(), Box> { + fn uninstall(&self, _name: &str) -> Result<(), Box> { todo!() } - fn start(&self, name: &str) -> Result<(), Box> { + fn start(&self, _name: &str) -> Result<(), Box> { todo!() } - fn stop(&self, name: &str) -> Result<(), Box> { + fn stop(&self, _name: &str) -> Result<(), Box> { todo!() } } \ No newline at end of file diff --git a/tfclient/src/service/runit.rs b/tfclient/src/service/runit.rs index c6c4a45..db07e08 100644 --- a/tfclient/src/service/runit.rs +++ b/tfclient/src/service/runit.rs @@ -4,19 +4,19 @@ use crate::service::ServiceManager; pub struct RunitServiceManager {} impl ServiceManager for RunitServiceManager { - fn install(&self, bin_path: PathBuf, name: &str, server_url: &str) -> Result<(), Box> { + fn install(&self, _bin_path: PathBuf, _name: &str, _server_url: &str) -> Result<(), Box> { todo!() } - fn uninstall(&self, name: &str) -> Result<(), Box> { + fn uninstall(&self, _name: &str) -> Result<(), Box> { todo!() } - fn start(&self, name: &str) -> Result<(), Box> { + fn start(&self, _name: &str) -> Result<(), Box> { todo!() } - fn stop(&self, name: &str) -> Result<(), Box> { + fn stop(&self, _name: &str) -> Result<(), Box> { todo!() } } \ No newline at end of file diff --git a/tfclient/src/service/windows.rs b/tfclient/src/service/windows.rs index 4b17651..8006a06 100644 --- a/tfclient/src/service/windows.rs +++ b/tfclient/src/service/windows.rs @@ -4,19 +4,19 @@ use crate::service::ServiceManager; pub struct WindowsServiceManager {} impl ServiceManager for WindowsServiceManager { - fn install(&self, bin_path: PathBuf, name: &str, server_url: &str) -> Result<(), Box> { + fn install(&self, _bin_path: PathBuf, _name: &str, _server_url: &str) -> Result<(), Box> { todo!() } - fn uninstall(&self, name: &str) -> Result<(), Box> { + fn uninstall(&self, _name: &str) -> Result<(), Box> { todo!() } - fn start(&self, name: &str) -> Result<(), Box> { + fn start(&self, _name: &str) -> Result<(), Box> { todo!() } - fn stop(&self, name: &str) -> Result<(), Box> { + fn stop(&self, _name: &str) -> Result<(), Box> { todo!() } } \ No newline at end of file diff --git a/tfclient/src/socketworker.rs b/tfclient/src/socketworker.rs index 5dbd94a..af86f4e 100644 --- a/tfclient/src/socketworker.rs +++ b/tfclient/src/socketworker.rs @@ -8,6 +8,6 @@ pub enum SocketWorkerMessage { } -pub fn socketworker_main(config: TFClientConfig, transmitter: ThreadMessageSender, rx: Receiver) { +pub fn socketworker_main(_config: TFClientConfig, _transmitter: ThreadMessageSender, _rx: Receiver) { } \ No newline at end of file