Skip to content

Commit aaefdcd

Browse files
committed
use slice instead of full array for parts
1 parent 4bf45f2 commit aaefdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bors/command/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn parse_approve_on_behalf<'a>(parts: &[CommandPart<'a>]) -> ParseResult<'a> {
141141
} else if value.is_empty() {
142142
return Some(Err(CommandParseError::MissingArgValue { arg: "r" }));
143143
} else {
144-
match parse_priority(parts) {
144+
match parse_priority(&parts[1..]) {
145145
Ok(priority) => Some(Ok(BorsCommand::Approve {
146146
approver: Approver::Specified(value.to_string()),
147147
priority,

0 commit comments

Comments
 (0)