summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-13 15:30:35 +0200
committermo8it <mo8it@proton.me>2024-04-13 15:30:35 +0200
commit2a26dfcb005d2a9ee24e920462b37dfb6d235c32 (patch)
treee27a37be2a1b4d1fa6c5a8985e1c0e5651d31bf1
parent24539666afb0e8c80fbccbca7ad212ba8fbd1189 (diff)
Remove unused ContextLine
-rw-r--r--src/exercise.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/exercise.rs b/src/exercise.rs
index a29b83a..6aa3b82 100644
--- a/src/exercise.rs
+++ b/src/exercise.rs
@@ -63,17 +63,6 @@ pub struct Exercise {
pub hint: String,
}
-// The context information of a pending exercise.
-#[derive(PartialEq, Eq, Debug)]
-pub struct ContextLine {
- // The source code line
- pub line: String,
- // The line number
- pub number: usize,
- // Whether this is important and should be highlighted
- pub important: bool,
-}
-
impl Exercise {
fn cargo_cmd(&self, command: &str, args: &[&str]) -> Result<Output> {
let mut cmd = Command::new("cargo");