cargo-fix
This commit is contained in:
parent
6c1b8f090f
commit
a0a116cbba
|
@ -6,6 +6,6 @@ pub enum APIWorkerMessage {
|
|||
|
||||
}
|
||||
|
||||
pub fn apiworker_main(config: TFClientConfig, transmitters: ThreadMessageSender, rx: Receiver<APIWorkerMessage>) {
|
||||
pub fn apiworker_main(_config: TFClientConfig, _transmitters: ThreadMessageSender, _rx: Receiver<APIWorkerMessage>) {
|
||||
|
||||
}
|
|
@ -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};
|
||||
|
|
|
@ -8,6 +8,6 @@ pub enum NebulaWorkerMessage {
|
|||
|
||||
}
|
||||
|
||||
pub fn nebulaworker_main(config: TFClientConfig, transmitter: ThreadMessageSender, rx: Receiver<NebulaWorkerMessage>) {
|
||||
pub fn nebulaworker_main(_config: TFClientConfig, _transmitter: ThreadMessageSender, _rx: Receiver<NebulaWorkerMessage>) {
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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<dyn Error>> {
|
||||
fn install(&self, _bin_path: PathBuf, _name: &str, _server_url: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn uninstall(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn uninstall(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn start(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn start(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn stop(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn stop(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
}
|
|
@ -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<dyn Error>> {
|
||||
fn install(&self, _bin_path: PathBuf, _name: &str, _server_url: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn uninstall(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn uninstall(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn start(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn start(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn stop(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn stop(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
}
|
|
@ -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<dyn Error>> {
|
||||
fn install(&self, _bin_path: PathBuf, _name: &str, _server_url: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn uninstall(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn uninstall(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn start(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn start(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn stop(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||||
fn stop(&self, _name: &str) -> Result<(), Box<dyn Error>> {
|
||||
todo!()
|
||||
}
|
||||
}
|
|
@ -8,6 +8,6 @@ pub enum SocketWorkerMessage {
|
|||
|
||||
}
|
||||
|
||||
pub fn socketworker_main(config: TFClientConfig, transmitter: ThreadMessageSender, rx: Receiver<SocketWorkerMessage>) {
|
||||
pub fn socketworker_main(_config: TFClientConfig, _transmitter: ThreadMessageSender, _rx: Receiver<SocketWorkerMessage>) {
|
||||
|
||||
}
|
Loading…
Reference in New Issue