Yeet use of patterns feature

This commit is contained in:
elkowar 2024-02-17 12:38:04 +01:00 committed by ElKowar
parent 031a2b52ec
commit e93f345210
2 changed files with 0 additions and 7 deletions

View File

@ -1,4 +1,3 @@
#![feature(pattern)]
#![feature(try_blocks)]
#![feature(unwrap_infallible)]
#![feature(never_type)]

View File

@ -1,5 +1,3 @@
use std::str::pattern::Pattern;
use eww_shared_util::{Span, Spanned};
use once_cell::sync::Lazy;
use regex::{Regex, RegexSet};
@ -133,10 +131,6 @@ impl<'s> Lexer<'s> {
&self.source[self.pos..]
}
pub fn continues_with(&self, pat: impl Pattern<'s>) -> bool {
self.remaining().starts_with(pat)
}
pub fn next_token(&mut self) -> Option<Result<Sp<Token>, LexicalError>> {
loop {
if self.failed || self.pos >= self.source.len() {