- let is_simple_enough =
- tactic == DefinitiveListTactic::Vertical && is_every_args_simple(args);
- if is_simple_enough
- && FORMAT_LIKE_WHITELIST
- .iter()
- .find(|s| **s == callee_str)
- .is_some()
- {
- let args_tactic = definitive_tactic(
- &item_vec[1..],
- ListTactic::HorizontalVertical,
- Separator::Comma,
- nested_shape.width,
- );
- tactic = if args_tactic == DefinitiveListTactic::Horizontal {
- DefinitiveListTactic::FormatCall
- } else {
- default_tactic()
- };
- } else if is_simple_enough && item_vec.len() >= 2
- && WRITE_LIKE_WHITELIST
- .iter()
- .find(|s| **s == callee_str)
- .is_some()
- {
+
+ // For special-case macros, we may want to use different tactics.
+ let maybe_args_offset = maybe_get_args_offset(callee_str, args);
+
+ if tactic == DefinitiveListTactic::Vertical && maybe_args_offset.is_some() {
+ let args_offset = maybe_args_offset.unwrap();