aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/str.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-11-17 16:52:17 +0100
committerMs2ger <Ms2ger@gmail.com>2015-11-18 11:14:05 +0100
commit0c61be7a577b99dc138eb6a2e46fb9276df0870d (patch)
tree8188a7ed8f86ce1fab95f7aa4ff5c43819e4520d /components/script/dom/bindings/str.rs
parentceb72e54e469bb3811fb641e7c38f476781a5720 (diff)
downloadservo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.tar.gz
servo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.zip
Rustfmt some of script.
Diffstat (limited to 'components/script/dom/bindings/str.rs')
-rw-r--r--components/script/dom/bindings/str.rs26
1 files changed, 20 insertions, 6 deletions
diff --git a/components/script/dom/bindings/str.rs b/components/script/dom/bindings/str.rs
index dd4295f2c0b..b9b1090e082 100644
--- a/components/script/dom/bindings/str.rs
+++ b/components/script/dom/bindings/str.rs
@@ -56,12 +56,26 @@ impl ByteString {
// http://tools.ietf.org/html/rfc2616#section-2.2
match x {
0...31 | 127 => false, // CTLs
- 40 | 41 | 60 | 62 | 64 |
- 44 | 59 | 58 | 92 | 34 |
- 47 | 91 | 93 | 63 | 61 |
- 123 | 125 | 32 => false, // separators
+ 40 |
+ 41 |
+ 60 |
+ 62 |
+ 64 |
+ 44 |
+ 59 |
+ 58 |
+ 92 |
+ 34 |
+ 47 |
+ 91 |
+ 93 |
+ 63 |
+ 61 |
+ 123 |
+ 125 |
+ 32 => false, // separators
x if x > 127 => false, // non-CHARs
- _ => true
+ _ => true,
}
})
}
@@ -75,7 +89,7 @@ impl ByteString {
Other,
CR,
LF,
- SPHT // SP or HT
+ SPHT, // SP or HT
}
let ByteString(ref vec) = *self;
let mut prev = PreviousCharacter::Other; // The previous character