style(headers): Break lines with over 100 characters

This commit is contained in:
Pyfisch
2015-05-03 15:45:11 +02:00
parent 66d54d03e7
commit db4d89189a
11 changed files with 92 additions and 35 deletions

View File

@@ -168,8 +168,9 @@ mod tests {
#[test]
fn test_parse_extension() {
let cache = Header::parse_header(&[b"foo, bar=baz".to_vec()]);
assert_eq!(cache, Some(CacheControl(vec![CacheDirective::Extension("foo".to_string(), None),
CacheDirective::Extension("bar".to_string(), Some("baz".to_string()))])))
assert_eq!(cache, Some(CacheControl(vec![
CacheDirective::Extension("foo".to_string(), None),
CacheDirective::Extension("bar".to_string(), Some("baz".to_string()))])))
}
#[test]
@@ -179,4 +180,5 @@ mod tests {
}
}
bench_header!(normal, CacheControl, { vec![b"no-cache, private".to_vec(), b"max-age=100".to_vec()] });
bench_header!(normal,
CacheControl, { vec![b"no-cache, private".to_vec(), b"max-age=100".to_vec()] });