mirror of
https://github.com/openharmony/third_party_rust_hyper.git
synced 2026-07-21 01:05:26 -04:00
Remove collections trait implementations.
Rust has removed them due to collections reform RFC: RFC: https://github.com/rust-lang/rfcs/pull/235/files Commit: https://github.com/rust-lang/rust/commit/21ac985af44f4e2470ef6f4c0eb4d72daf5a6497
This commit is contained in:
@@ -303,18 +303,6 @@ impl<'a> fmt::Show for HeaderView<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Collection for Headers {
|
||||
fn len(&self) -> uint {
|
||||
self.data.len()
|
||||
}
|
||||
}
|
||||
|
||||
impl Mutable for Headers {
|
||||
fn clear(&mut self) {
|
||||
self.data.clear()
|
||||
}
|
||||
}
|
||||
|
||||
struct Item {
|
||||
raw: Option<Vec<Vec<u8>>>,
|
||||
typed: Option<Box<HeaderFormat + Send + Sync>>
|
||||
|
||||
Reference in New Issue
Block a user