mirror of
https://github.com/openharmony/third_party_rust_http.git
synced 2026-07-19 14:43:33 -04:00
Fix broken test
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user