diff --git a/Cargo.lock b/Cargo.lock index bbb6213..7b8abe6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -703,7 +703,6 @@ version = "0.2.0" dependencies = [ "colored", "handlebars", - "lazy_static", "log", "pest", "pest_derive", diff --git a/model/Cargo.toml b/model/Cargo.toml index c5465ba..748cc2c 100644 --- a/model/Cargo.toml +++ b/model/Cargo.toml @@ -12,7 +12,6 @@ keywords = ["sysadmin", "management"] [dependencies] colored = "2" handlebars = "~3.5" -lazy_static = "~1.4.0" log = "0.4" pest = "~2.1" pest_derive = "~2.1" diff --git a/model/src/lib.rs b/model/src/lib.rs index 90a0a84..886c552 100644 --- a/model/src/lib.rs +++ b/model/src/lib.rs @@ -1,6 +1,4 @@ #[macro_use] -extern crate lazy_static; -#[macro_use] extern crate pest; #[macro_use] extern crate pest_derive; diff --git a/model/src/task/mod.rs b/model/src/task/mod.rs index db52fee..43c8375 100644 --- a/model/src/task/mod.rs +++ b/model/src/task/mod.rs @@ -9,16 +9,6 @@ use std::io::Read; use std::path::PathBuf; use url::Url; -struct NativeTask { -} - -lazy_static! { - static ref REGISTRY: HashMap = { - let mut m = HashMap::new(); - m - }; -} - #[derive(Parser)] #[grammar = "task.pest"] struct TaskParser; @@ -114,10 +104,6 @@ impl Script { } } -trait Tasq { - fn name() -> String; -} - #[derive(Clone, Debug)] pub struct Task { pub name: String,