advotracker: get correct crates and modules into scope

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-06-30 15:05:02 +02:00
parent 1aebd4338f
commit 7196013bb2

View File

@@ -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<dyn std::error::Error>> {
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");