File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -204,8 +204,7 @@ impl fmt::Display for ParserError {
204204 }
205205}
206206
207- #[cfg(feature = "std")]
208- impl std::error::Error for ParserError {}
207+ impl core::error::Error for ParserError {}
209208
210209// By default, allow expressions up to this deep before erroring
211210const DEFAULT_REMAINING_DEPTH: usize = 50;
Original file line number Diff line number Diff line change @@ -2553,9 +2553,8 @@ mod tests {
25532553 message : "test" . into ( ) ,
25542554 location : Location { line : 1 , column : 1 } ,
25552555 } ;
2556- #[ cfg( feature = "std" ) ]
25572556 {
2558- use std :: error:: Error ;
2557+ use core :: error:: Error ;
25592558 assert ! ( err. source( ) . is_none( ) ) ;
25602559 }
25612560 assert_eq ! ( err. to_string( ) , "test at Line: 1, Column: 1" ) ;
You can’t perform that action at this time.
0 commit comments