Move enum definition closer to its usage.
This commit is contained in:
parent
df7fd119d2
commit
15754f5ea1
1 changed files with 5 additions and 5 deletions
|
@ -267,17 +267,17 @@ pub fn make_format_args(
|
|||
})
|
||||
};
|
||||
|
||||
let num_explicit_args = args.len();
|
||||
let mut used = vec![false; num_explicit_args];
|
||||
let mut invalid_refs = Vec::new();
|
||||
let mut numeric_refences_to_named_arg = Vec::new();
|
||||
|
||||
enum ArgRef<'a> {
|
||||
Index(usize),
|
||||
Name(&'a str, Option<Span>),
|
||||
}
|
||||
use ArgRef::*;
|
||||
|
||||
let num_explicit_args = args.len();
|
||||
let mut used = vec![false; num_explicit_args];
|
||||
let mut invalid_refs = Vec::new();
|
||||
let mut numeric_refences_to_named_arg = Vec::new();
|
||||
|
||||
let mut lookup_arg = |arg: ArgRef<'_>,
|
||||
span: Option<Span>,
|
||||
used_as: PositionUsedAs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue