diff --git a/src/error.rs b/src/error.rs index 7013154..78a593b 100644 --- a/src/error.rs +++ b/src/error.rs @@ -101,14 +101,11 @@ impl error::Error for BuildError { } #[derive(Debug)] -pub struct StackPrinter { +pub struct StackPrinter { pub err: abortable_parser::Error, } -impl StackPrinter -where - C: abortable_parser::Positioned, -{ +impl StackPrinter { pub fn render(&self, w: &mut fmt::Formatter) -> fmt::Result { let mut curr_err = Some(&self.err); let mut tabstop = ""; @@ -138,10 +135,7 @@ where } } -impl fmt::Display for StackPrinter -where - C: Positioned, -{ +impl fmt::Display for StackPrinter { fn fmt(&self, w: &mut fmt::Formatter) -> fmt::Result { self.render(w) }