diff --git a/src/items.rs b/src/items.rs index f2ce2106991..47ce0f8de20 100644 --- a/src/items.rs +++ b/src/items.rs @@ -481,7 +481,9 @@ impl<'a> FmtVisitor<'a> { let context = self.get_context(); let mut arg_item_strs = try_opt!(args.iter() .map(|arg| { - arg.rewrite(&context, multi_line_budget, indent) + arg.rewrite(&context, + multi_line_budget, + arg_indent) }) .collect::>>()); diff --git a/tests/source/fn-simple.rs b/tests/source/fn-simple.rs index 5f41141b689..b9f6a1e64b1 100644 --- a/tests/source/fn-simple.rs +++ b/tests/source/fn-simple.rs @@ -24,3 +24,8 @@ pub fn http_fetch_async(listener:Box< AsyncCORSResponseListener+Send >, script_ } fn some_func>(val:T){} + +fn zzzzzzzzzzzzzzzzzzzz + (selff: Type, mut handle: node::Handle>, Type, NodeType>) + -> SearchStack<'a, K, V, Type, NodeType>{ +} diff --git a/tests/target/fn-simple.rs b/tests/target/fn-simple.rs index e8b5635671d..9e635e31a3c 100644 --- a/tests/target/fn-simple.rs +++ b/tests/target/fn-simple.rs @@ -37,3 +37,10 @@ pub fn http_fetch_async(listener: Box, fn some_func>(val: T) { } + +fn zzzzzzzzzzzzzzzzzzzz(selff: Type, + mut handle: node::Handle>, + Type, + NodeType>) + -> SearchStack<'a, K, V, Type, NodeType> { +}