From 7196013bb291b5d372f5c2167ecea5c2f0107180 Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Tue, 30 Jun 2020 15:05:02 +0200 Subject: [PATCH] advotracker: get correct crates and modules into scope Signed-off-by: Ralf Zerres --- advotracker/src/main.rs | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/advotracker/src/main.rs b/advotracker/src/main.rs index 136137c..5fa5d16 100644 --- a/advotracker/src/main.rs +++ b/advotracker/src/main.rs @@ -5,14 +5,14 @@ * SPDX-License-Identifier: (0BSD or MIT) */ -use chrono::{Local, DateTime}; +//use chrono::{Local, DateTime}; use locales::t; //use serde::{Deserialize, Serialize}; use serde::Deserialize; -use std::env; -use std::{error::Error, process}; +use std::{env, process}; +//use std::{error::Error, process}; use std::collections::HashMap; -use tracing::{debug, trace, span, Level}; +use tracing::{debug, trace, Level}; use orbtk::prelude::*; use orbtk::theme::DEFAULT_THEME_CSS; @@ -21,30 +21,6 @@ use orbtk::theme::DEFAULT_THEME_CSS; // The Main view use advotracker::widgets::main_view; -//use advotracker::services; -//use advotracker::sercices::policy_check::{import}; - -// helper modules -//pub mod base_state; -//pub mod keys; - -// the frontend -//pub mod main_view; - -// validation check of a policy data element given by its poliy code -//pub mod policycheck_view; -//ub mod policycheck_state; -//pub mod policycheck_menu; - -// // manage list of policy data structures -// pub mod policylist_view; -// pub mod policylist_state; - -// // manage policy data elements -// pub mod policydata_view; -// pub mod policydata_state; -// include modules - mod parse_args; /// respect environment variables set in .env files @@ -74,10 +50,9 @@ fn main() -> Result<(), Box> { use tracing_subscriber::fmt; use viperus::Viperus; - use advotracker::services::policy_check::*; + //use advotracker::callbacks::policy_check::is_valid; use advotracker::services::imports::allianzdirectcall::*; - //use advotracker::data; - use advotracker::data::structures::{PolicyCode, PolicyDataList, PolicyData, PolicyList}; + use advotracker::data::structures::{PolicyCode, PolicyDataList, PolicyList}; //static DEFAULT_FILTER: &str = concat!(module_path!(), "=", "trace");