From 20cfe717065fa53953e9799036a9972880fec801 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 6 Feb 2022 19:30:53 +0100 Subject: Replace a card whenever the front or the back changed --- src/model/deck.rs | 5 ----- src/model/entry.rs | 5 +++++ src/model/mod.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 src/model/deck.rs create mode 100644 src/model/entry.rs (limited to 'src/model') diff --git a/src/model/deck.rs b/src/model/deck.rs deleted file mode 100644 index 769b38c..0000000 --- a/src/model/deck.rs +++ /dev/null @@ -1,5 +0,0 @@ -#[derive(Debug, Clone)] -pub struct Entry { - pub part_1: Vec, - pub part_2: Vec, -} diff --git a/src/model/entry.rs b/src/model/entry.rs new file mode 100644 index 0000000..769b38c --- /dev/null +++ b/src/model/entry.rs @@ -0,0 +1,5 @@ +#[derive(Debug, Clone)] +pub struct Entry { + pub part_1: Vec, + pub part_2: Vec, +} diff --git a/src/model/mod.rs b/src/model/mod.rs index bbd7891..185f401 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -1,3 +1,3 @@ pub mod card; -pub mod deck; pub mod difficulty; +pub mod entry; -- cgit v1.2.3