Skip to content

Commit ec1509c

Browse files
committed
Merge pull request http-rs#14 from darayus/rustup
Update to rust master
2 parents 97021bd + 8dc6891 commit ec1509c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![feature(associated_types)]
12
#[cfg(test)] extern crate test;
23

34
use nfa::NFA;
@@ -75,7 +76,8 @@ impl Params {
7576
}
7677
}
7778

78-
impl Index<&'static str, String> for Params {
79+
impl Index<&'static str> for Params {
80+
type Output = String;
7981
fn index<'a>(&'a self, index: &&'static str) -> &'a String {
8082
match self.map.get(&index.to_string()) {
8183
None => panic!(format!("params[{}] did not exist", index)),

0 commit comments

Comments
 (0)