fix(rustup): Fix signature of IntoCow
This commit is contained in:
committed by
Sean McArthur
parent
b0a72d80d0
commit
234fcdc3a2
@@ -203,7 +203,7 @@ impl Headers {
|
|||||||
/// # let mut headers = Headers::new();
|
/// # let mut headers = Headers::new();
|
||||||
/// headers.set_raw("content-length", vec![b"5".to_vec()]);
|
/// headers.set_raw("content-length", vec![b"5".to_vec()]);
|
||||||
/// ```
|
/// ```
|
||||||
pub fn set_raw<K: IntoCow<'static, String, str>>(&mut self, name: K, value: Vec<Vec<u8>>) {
|
pub fn set_raw<K: IntoCow<'static, str>>(&mut self, name: K, value: Vec<Vec<u8>>) {
|
||||||
self.data.insert(UniCase(name.into_cow()), Item::new_raw(value));
|
self.data.insert(UniCase(name.into_cow()), Item::new_raw(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user