diff --git a/Cargo.lock b/Cargo.lock index d06ecde..81ed039 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -416,7 +416,6 @@ dependencies = [ "reqwest", "tokio", "url", - "uuid", ] [[package]] @@ -943,12 +942,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "uuid" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" - [[package]] name = "vcpkg" version = "0.2.11" diff --git a/Cargo.toml b/Cargo.toml index a17ce71..b5d115e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,6 @@ edition = "2018" env_logger = "0.8" log = "0.4" tokio = { version = "1.2", features = ["macros", "rt"]} -uuid = "0.8" reqwest = "0.11" minidom = "0.13" url = "2.2" diff --git a/src/data/task.rs b/src/data/task.rs index 02932dc..fa50166 100644 --- a/src/data/task.rs +++ b/src/data/task.rs @@ -1,6 +1,4 @@ -use uuid::Uuid; - -pub type TaskId = Uuid; +pub type TaskId = String; // This is an HTML "etag" /// A to-do task #[derive(Clone, Debug)] @@ -11,7 +9,7 @@ pub struct Task { } impl Task { - pub fn id(&self) -> Uuid { self.id } + pub fn id(&self) -> &TaskId { &self.id } pub fn name(&self) -> &str { &self.name } pub fn completed(&self) -> bool { self.completed }