Remove unnecessary cloned() in reader::lexer::trailing_digits()

This commit is contained in:
Aleksey Kuznetsov
2017-06-01 20:48:36 +05:00
committed by Jakob Stoklund Olesen
parent 059845880c
commit cb35869803

View File

@@ -87,8 +87,7 @@ fn trailing_digits(s: &str) -> usize {
s.as_bytes()
.iter()
.rev()
.cloned()
.take_while(|&b| b'0' <= b && b <= b'9')
.take_while(|&&b| b'0' <= b && b <= b'9')
.count()
}