Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kroisse committed Apr 9, 2014
1 parent 0a8f06d commit 7f9f976
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mustache/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<'a> MapBuilder<'a> {
/// .build();
/// ```
#[inline]
pub fn insert_fn(self, key: ~str, f: 'a |~str| -> ~str) -> MapBuilder<'a> {
pub fn insert_fn(self, key: ~str, f: |~str|: 'a -> ~str) -> MapBuilder<'a> {
let MapBuilder { mut data } = self;
data.insert(key, Fun(f));
MapBuilder { data: data }
Expand Down Expand Up @@ -249,7 +249,7 @@ impl<'a> VecBuilder<'a> {
/// .build();
/// ```
#[inline]
pub fn push_fn(self, f: 'a |~str| -> ~str) -> VecBuilder<'a> {
pub fn push_fn(self, f: |~str|: 'a -> ~str) -> VecBuilder<'a> {
let VecBuilder { mut data } = self;
data.push(Fun(f));
VecBuilder { data: data }
Expand Down
2 changes: 1 addition & 1 deletion src/mustache/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub enum Data<'a> {
Bool(bool),
Vec(Vec<Data<'a>>),
Map(HashMap<~str, Data<'a>>),
Fun('a |~str| -> ~str),
Fun(|~str|: 'a -> ~str),
}

impl<'a> Eq for Data<'a> {
Expand Down

0 comments on commit 7f9f976

Please sign in to comment.