Merge pull request #488 from marcusklaas/fn-arg-indents

Fix indentation for function arguments
This commit is contained in:
Nick Cameron 2015-10-19 09:29:56 +13:00
commit 2995e1b22b
3 changed files with 15 additions and 1 deletions

View File

@ -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::<Option<Vec<_>>>());

View File

@ -24,3 +24,8 @@ pub fn http_fetch_async(listener:Box< AsyncCORSResponseListener+Send >, script_
}
fn some_func<T:Box<Trait+Bound>>(val:T){}
fn zzzzzzzzzzzzzzzzzzzz<Type, NodeType>
(selff: Type, mut handle: node::Handle<IdRef<'id, Node<K, V>>, Type, NodeType>)
-> SearchStack<'a, K, V, Type, NodeType>{
}

View File

@ -37,3 +37,10 @@ pub fn http_fetch_async(listener: Box<AsyncCORSResponseListener + Send>,
fn some_func<T: Box<Trait + Bound>>(val: T) {
}
fn zzzzzzzzzzzzzzzzzzzz<Type, NodeType>(selff: Type,
mut handle: node::Handle<IdRef<'id, Node<K, V>>,
Type,
NodeType>)
-> SearchStack<'a, K, V, Type, NodeType> {
}