summaryrefslogtreecommitdiff
path: root/oryxc
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-02-27 12:29:57 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-02-27 12:29:57 +0100
commit048a4e588c01f65c94d7a6d93c555ca11e0230ae (patch)
tree8c80608e563ea686dc78984a8f709af5d82a3002 /oryxc
parent22278edb23ce7b5c7055106bb91cef1b076d3c5c (diff)
Do unqualified imports
Diffstat (limited to 'oryxc')
-rw-r--r--oryxc/src/lexer.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/oryxc/src/lexer.rs b/oryxc/src/lexer.rs
index f5f4c85..2e1a21c 100644
--- a/oryxc/src/lexer.rs
+++ b/oryxc/src/lexer.rs
@@ -1,12 +1,13 @@
use std::borrow::Cow;
use std::ffi::OsStr;
use std::fmt::Display;
-use std::vec::Vec;
-use std::{
- iter,
- mem,
- str,
+use std::iter::Peekable;
+use std::mem;
+use std::str::{
+ self,
+ Chars,
};
+use std::vec::Vec;
use phf;
use soa_rs::{
@@ -119,7 +120,7 @@ impl Error {
struct LexerContext<'a> {
pos_a: usize, /* Pos [a]fter char */
pos_b: usize, /* Pos [b]efore char */
- chars: iter::Peekable<str::Chars<'a>>,
+ chars: Peekable<Chars<'a>>,
string: &'a str,
filename: &'a OsStr,
expect_punct_p: bool,