Skip to content

Commit 74a82e5

Browse files
committed
Set default halt_on_error to true
1 parent f9bf444 commit 74a82e5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/engines/tex.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub enum TexResult {
2121
Errors,
2222
}
2323

24-
#[derive(Debug,Default)]
24+
#[derive(Debug)]
2525
pub struct TexEngine {
2626
// One day, the engine will hold its own state. For the time being,
2727
// though, it's just a proxy for the global constants in the C code.
@@ -31,6 +31,15 @@ pub struct TexEngine {
3131
synctex_enabled: bool,
3232
}
3333

34+
impl Default for TexEngine {
35+
fn default() -> Self {
36+
TexEngine {
37+
halt_on_error: true,
38+
initex_mode: false,
39+
synctex_enabled: false,
40+
}
41+
}
42+
}
3443

3544
impl TexEngine {
3645
pub fn new () -> TexEngine {

0 commit comments

Comments
 (0)