From c6f92eaedf197beafef461ee6c2bd067e7160c49 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 21 Jun 2022 16:06:50 +0200 Subject: Refactor to improve a bunch of states MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Improve passing stuff around * Add traits to enums for markers and such * Fix “life time” stuff I didn’t understand --- src/content/string.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/content/string.rs') diff --git a/src/content/string.rs b/src/content/string.rs index c3e825e..bae2646 100644 --- a/src/content/string.rs +++ b/src/content/string.rs @@ -55,14 +55,6 @@ fn before_data(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { (State::Fn(Box::new(in_data)), None) } } - - // if let Code::None = code { - // (State::Ok, None) - // } else { - // tokenizer.enter(TokenType::Data); - // tokenizer.consume(code); - // (State::Fn(Box::new(in_data)), None) - // } } /// In data. -- cgit