mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 15:56:28 +00:00
Remove unused ContextLine
This commit is contained in:
parent
24539666af
commit
2a26dfcb00
1 changed files with 0 additions and 11 deletions
|
@ -63,17 +63,6 @@ pub struct Exercise {
|
||||||
pub hint: String,
|
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 {
|
impl Exercise {
|
||||||
fn cargo_cmd(&self, command: &str, args: &[&str]) -> Result<Output> {
|
fn cargo_cmd(&self, command: &str, args: &[&str]) -> Result<Output> {
|
||||||
let mut cmd = Command::new("cargo");
|
let mut cmd = Command::new("cargo");
|
||||||
|
|
Loading…
Reference in a new issue