Fix indentation for function arguments

This commit is contained in:
Marcus Klaas 2015-10-18 22:21:46 +02:00
parent d326a29b4b
commit 8e2a910021
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> {
}