aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/smallvec.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-01-19 08:33:48 -0700
committerbors-servo <metajack+bors@gmail.com>2015-01-19 08:33:48 -0700
commitee94b3e8bf659c847bda967700272f8f98fdb0cc (patch)
treeb2eb4585705b7b71229647ed2d77289d00474f75 /components/util/smallvec.rs
parentf3dfe04fa45bd723fac40d1452550d55240f80f8 (diff)
parent394f8163433559cea294cb4a4e335cc43ccde1fe (diff)
downloadservo-ee94b3e8bf659c847bda967700272f8f98fdb0cc.tar.gz
servo-ee94b3e8bf659c847bda967700272f8f98fdb0cc.zip
auto merge of #4662 : Ms2ger/servo/overlong, r=larsbergstrom
The Rust style guide suggests 100, but we have too many violations in the tree already. This check can be tightened over time.
Diffstat (limited to 'components/util/smallvec.rs')
-rw-r--r--components/util/smallvec.rs21
1 files changed, 18 insertions, 3 deletions
diff --git a/components/util/smallvec.rs b/components/util/smallvec.rs
index 60e22f25a70..e92d3d3eeba 100644
--- a/components/util/smallvec.rs
+++ b/components/util/smallvec.rs
@@ -531,7 +531,10 @@ pub mod tests {
let mut v = SmallVec16::new();
v.push("hello".into_string());
v.push("there".into_string());
- assert_eq!(v.as_slice(), vec!["hello".into_string(), "there".into_string()].as_slice());
+ assert_eq!(v.as_slice(), vec![
+ "hello".into_string(),
+ "there".into_string(),
+ ].as_slice());
}
#[test]
@@ -541,7 +544,12 @@ pub mod tests {
v.push("there".into_string());
v.push("burma".into_string());
v.push("shave".into_string());
- assert_eq!(v.as_slice(), vec!["hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string()].as_slice());
+ assert_eq!(v.as_slice(), vec![
+ "hello".into_string(),
+ "there".into_string(),
+ "burma".into_string(),
+ "shave".into_string(),
+ ].as_slice());
}
#[test]
@@ -556,7 +564,14 @@ pub mod tests {
v.push("burma".into_string());
v.push("shave".into_string());
assert_eq!(v.as_slice(), vec![
- "hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string(), "hello".into_string(), "there".into_string(), "burma".into_string(), "shave".into_string(),
+ "hello".into_string(),
+ "there".into_string(),
+ "burma".into_string(),
+ "shave".into_string(),
+ "hello".into_string(),
+ "there".into_string(),
+ "burma".into_string(),
+ "shave".into_string(),
].as_slice());
}
}