Skip to content

Commit 0bc7929

Browse files
authored
Merge pull request rust-lang#219 from stmtk1/master
rewrite redundant expression
2 parents 5c4adc1 + bcc6ac7 commit 0bc7929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/kaleidoscope/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub struct Lexer<'a> {
9292
impl<'a> Lexer<'a> {
9393
/// Creates a new `Lexer`, given its source `input`.
9494
pub fn new(input: &'a str) -> Lexer<'a> {
95-
Lexer { input: input, chars: Box::new(input.chars().peekable()), pos: 0 }
95+
Lexer { input, chars: Box::new(input.chars().peekable()), pos: 0 }
9696
}
9797

9898
/// Lexes and returns the next `Token` from the source code.

0 commit comments

Comments
 (0)