Skip to content

Commit 6fbbc0d

Browse files
author
bors-servo
authored
Auto merge of #219 - xfix:replace-three-dots, r=nox
Replace ... operator with ..= <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/string-cache/219) <!-- Reviewable:end -->
2 parents 435f629 + a98e063 commit 6fbbc0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/atom.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ impl<Static: StaticAtomSet> Atom<Static> {
478478
/// [`to_ascii_uppercase`]: https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.to_ascii_uppercase
479479
pub fn to_ascii_uppercase(&self) -> Self {
480480
for (i, b) in self.bytes().enumerate() {
481-
if let b'a' ... b'z' = b {
481+
if let b'a' ..= b'z' = b {
482482
return Atom::from_mutated_str(self, |s| s[i..].make_ascii_uppercase())
483483
}
484484
}
@@ -490,7 +490,7 @@ impl<Static: StaticAtomSet> Atom<Static> {
490490
/// [`to_ascii_lowercase`]: https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.to_ascii_lowercase
491491
pub fn to_ascii_lowercase(&self) -> Self {
492492
for (i, b) in self.bytes().enumerate() {
493-
if let b'A' ... b'Z' = b {
493+
if let b'A' ..= b'Z' = b {
494494
return Atom::from_mutated_str(self, |s| s[i..].make_ascii_lowercase())
495495
}
496496
}

0 commit comments

Comments
 (0)