Skip to content

Commit 95781ce

Browse files
Removed other instances where std Error was implemented instead of core Error
1 parent 9e0c93e commit 95781ce

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
211210
const DEFAULT_REMAINING_DEPTH: usize = 50;

src/tokenizer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)