Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor-lagrange committed Nov 29, 2023
1 parent 5297a73 commit 7d8353e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,7 @@ impl<'a> Tokenizer<'a> {
pub fn tokenize(&mut self) -> Result<Vec<Token>, TokenizerError> {
let twl = self.tokenize_with_location()?;

let mut tokens: Vec<Token> = vec![];
tokens.reserve(twl.len());
let mut tokens: Vec<Token> = Vec::with_capacity(twl.len());
for token_with_location in twl {
tokens.push(token_with_location.token);
}
Expand Down

0 comments on commit 7d8353e

Please sign in to comment.