Fix broken test

This commit is contained in:
Carl Lerche
2017-08-11 20:49:49 -07:00
parent 1222b5ea87
commit 3f5ff0fb1e
+1 -1
View File
@@ -575,7 +575,7 @@ fn test_debug() {
];
for &(value, expected) in cases {
let val = HeaderValue::try_from_bytes(value.as_bytes()).unwrap();
let val = HeaderValue::from_bytes(value.as_bytes()).unwrap();
let actual = format!("{:?}", val);
assert_eq!(expected, actual);
}