aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJoris2024-10-14 22:30:47 +0200
committerJoris2024-10-14 22:30:47 +0200
commit924b10b0cd6c09fa7afa58e6f7a068646d1e56af (patch)
tree3f20b5db131e54ceb73f6e2b932525e9fe6f2c63 /src/main.rs
parenta126fba82cb4f9f4467b130fca7fd5a269fe3a5e (diff)
Use nom to parse linesmain
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index ebc2d7e..3454897 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,6 +2,7 @@ mod db;
mod deck;
mod gui;
mod model;
+mod parser;
mod space_repetition;
mod sync;
mod util;
@@ -47,13 +48,10 @@ fn main() -> Result<()> {
gui::message::show(&mut term, &deck_name, &format!("{msg}"), true)?
}
}
- },
- Err(msg) => {
- gui::message::show(&mut term, &deck_name, &format!("{msg}"), true)?
}
+ Err(msg) => gui::message::show(&mut term, &deck_name, &format!("{msg}"), true)?,
}
-
gui::restore_terminal(&mut term)
}