linted the code.

This commit is contained in:
didier amyot committed 2023-02-25 22:10:18 -05:00
1 parent 0c171171c2
commit f4170610b0
12 files changed
+84 -57

No files matched your search

+8 -4
View File
@@ -1,7 +1,7 @@
use std::path::PathBuf;
use clap::{Arg, ArgAction, ArgMatches, Command, value_parser};
use clap::parser::ValuesRef;
use clap::{value_parser, Arg, ArgAction, ArgMatches, Command};
use log::{debug, error, info};
use rusqlite::Connection;
use serde::Serialize;
@@ -16,11 +16,11 @@ use crate::webui::web_ui_main;
mod db;
mod event_processor;
mod events;
mod migration;
mod services;
mod util;
mod webui;
mod events;
#[derive(Debug, Serialize)]
struct Output<T> {
@@ -296,7 +296,9 @@ fn process_wui_command_line(
) -> CustomResult<()> {
debug!("Processing wui command line {:?}.", m);
match m.subcommand() {
Some(("run", run_wui_match)) => process_run_wui_command_line(connFact, run_wui_match, logic),
Some(("run", run_wui_match)) => {
process_run_wui_command_line(connFact, run_wui_match, logic)
}
_ => unreachable!(),
}
}
@@ -313,7 +315,9 @@ fn process_command_line(
Some(("securities", securities_match)) => {
process_securities_command_line(&mut conn, securities_match, logic)
}
Some(("events", events_match)) => process_events_command_line(&mut conn, events_match, logic),
Some(("events", events_match)) => {
process_events_command_line(&mut conn, events_match, logic)
}
Some(("wui", wui_match)) => process_wui_command_line(connFact, wui_match, logic),
_ => {
println!("Received un parsable command. {:?}", m.subcommand());