[lexer] Obey Rust book recommendation about order of leading lines
This commit is contained in:
parent
0ed4aa3ae5
commit
d69c3dbc31
3 changed files with 7 additions and 7 deletions
|
@ -2,6 +2,9 @@
|
|||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
|
||||
use std::iter::Peekable;
|
||||
use states::*;
|
||||
|
||||
mod chars;
|
||||
mod error;
|
||||
mod states;
|
||||
|
@ -10,9 +13,6 @@ mod token;
|
|||
pub use error::Error;
|
||||
pub use token::{Lex, Token};
|
||||
|
||||
use std::iter::Peekable;
|
||||
use states::*;
|
||||
|
||||
pub type Result = std::result::Result<Lex, Error>;
|
||||
|
||||
pub struct Lexer<T> where T: Iterator<Item=char> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue