Remove get and rename get_ref to get

Since `get_ref` (now `get`) takes `&self` there is no need
for a special cloning method.
This commit is contained in:
Jonathan Reem
2014-09-20 04:18:25 -07:00
parent 91cc29e0aa
commit 858a09304a
5 changed files with 8 additions and 22 deletions

View File

@@ -46,7 +46,7 @@ impl Request {
let body = if headers.has::<ContentLength>() {
match headers.get_ref::<ContentLength>() {
match headers.get::<ContentLength>() {
Some(&ContentLength(len)) => SizedReader(stream, len),
None => unreachable!()
}