Skip to content
This repository was archived by the owner on Aug 23, 2018. It is now read-only.

Commit cf87d42

Browse files
committed
Rust update.
1 parent 8ea20dc commit cf87d42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/httpcommon/headers/internals.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Inner {
8585
match (&mut self.raw, &mut self.typed) {
8686
(&mut Some(ref mut raw), &mut Some(ref typed)) => {
8787
raw.truncate(1);
88-
raw.as_mut_slice()[0] = fmt_header(typed);
88+
raw[0] = fmt_header(typed);
8989
},
9090

9191
(ref mut raw @ &mut None, &mut Some(ref typed)) => {
@@ -144,7 +144,7 @@ impl Inner {
144144
match self.raw {
145145
Some(ref mut raw) => {
146146
raw.truncate(1);
147-
raw.as_mut_slice()[0] = fmt_header(h);
147+
raw[0] = fmt_header(h);
148148
},
149149
None => {
150150
self.raw = Some(vec![fmt_header(h)]);

src/httpcommon/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#![doc(html_logo_url = "http://teepee.rs/logo.100.png",
1111
html_root_url = "http://www.rust-ci.org/teepee/teepee/doc/")]
1212

13-
#![feature(concat_idents, unsafe_destructor, plugin, core)]
13+
#![feature(concat_idents, unsafe_destructor, plugin, core, slice_patterns)]
1414

1515
#![warn(non_upper_case_globals, missing_docs, unused_results)]
1616

0 commit comments

Comments
 (0)