aboutsummaryrefslogtreecommitdiff
path: root/src/reader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.rs')
-rw-r--r--src/reader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.rs b/src/reader.rs
index 0e7a3a4..1acb4a3 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -1,4 +1,4 @@
-use crate::Never;
+use std::convert::Infallible;
use std::io::{self, BufRead, BufReader, Read};
/// An object that provides characters to the tokenizer.
@@ -67,7 +67,7 @@ impl<'a> StringReader<'a> {
}
impl<'a> Reader for StringReader<'a> {
- type Error = Never;
+ type Error = Infallible;
fn read_char(&mut self) -> Result<Option<char>, Self::Error> {
let c = match self.cursor.next() {