Skip to content

Commit 0336da0

Browse files
committed
Remove unnecessary whitespace
Very slightly improve the whitespacing and reduce total lines of code.
1 parent 7a629c6 commit 0336da0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/primitives/hrp.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ pub struct ByteIter<'b> {
207207
impl<'b> Iterator for ByteIter<'b> {
208208
type Item = u8;
209209
fn next(&mut self) -> Option<u8> { self.iter.next().copied() }
210-
211210
fn size_hint(&self) -> (usize, Option<usize>) { (self.len(), Some(self.len())) }
212211
}
213212

@@ -231,7 +230,6 @@ pub struct CharIter<'b> {
231230
impl<'b> Iterator for CharIter<'b> {
232231
type Item = char;
233232
fn next(&mut self) -> Option<char> { self.iter.next().map(Into::into) }
234-
235233
fn size_hint(&self) -> (usize, Option<usize>) { (self.len(), Some(self.len())) }
236234
}
237235

@@ -255,7 +253,6 @@ impl<'b> Iterator for LowercaseByteIter<'b> {
255253
fn next(&mut self) -> Option<u8> {
256254
self.iter.next().map(|b| if is_ascii_uppercase(b) { b | 32 } else { b })
257255
}
258-
259256
fn size_hint(&self) -> (usize, Option<usize>) { (self.len(), Some(self.len())) }
260257
}
261258

@@ -279,7 +276,6 @@ pub struct LowercaseCharIter<'b> {
279276
impl<'b> Iterator for LowercaseCharIter<'b> {
280277
type Item = char;
281278
fn next(&mut self) -> Option<char> { self.iter.next().map(Into::into) }
282-
283279
fn size_hint(&self) -> (usize, Option<usize>) { (self.len(), Some(self.len())) }
284280
}
285281

0 commit comments

Comments
 (0)