Fix the `clippy::get_first` lint. Note clippy fails due to a false positive.
This commit is contained in:
parent
55c5134840
commit
f6ec8af944
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ impl Hook {
|
|||
if let Some('}') = command_template.next() {
|
||||
let expr = token.trim().split(' ').collect::<Vec<&str>>();
|
||||
|
||||
let replaced = match expr.get(0) {
|
||||
let replaced = match expr.first() {
|
||||
Some(&"header") => get_header_field(
|
||||
headers,
|
||||
expr.get(1).ok_or_else(|| {
|
||||
|
|
Loading…
Reference in a new issue