mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Disallow lines that span more than 160 columns.
The Rust style guide suggests 100, but we have too many violations in the tree already. This check can be tightened over time.
This commit is contained in:
parent
60a901328a
commit
394f816343
5 changed files with 50 additions and 11 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue