Properly trap long positional values
This commit is contained in:
parent
a161d15db8
commit
4a3094bbc6
2 changed files with 4 additions and 2 deletions
|
@ -67,7 +67,8 @@ fn engage_aggregator<'a>(
|
|||
current_target = Some(target);
|
||||
targets.push(target);
|
||||
},
|
||||
Operand::Value(package) => if let Some(target) = current_target {
|
||||
Operand::LongPos(_, package)
|
||||
| Operand::Value(package) => if let Some(target) = current_target {
|
||||
match queue.get_mut(target) {
|
||||
Some(vec) => vec.push(package),
|
||||
None => { queue.insert(target, vec!(package)); },
|
||||
|
|
|
@ -223,7 +223,8 @@ fn engage_aggregator<'a>(
|
|||
base = false;
|
||||
}
|
||||
},
|
||||
Operand::Value(package) => if current_target != "" {
|
||||
Operand::LongPos(_, package)
|
||||
| Operand::Value(package) => if current_target != "" {
|
||||
match queue.get_mut(current_target.into()) {
|
||||
Some(vec) => vec.push(package.into()),
|
||||
None => { queue.insert(current_target.into(), vec!(package)); },
|
||||
|
|
Loading…
Reference in a new issue