summaryrefslogtreecommitdiff
path: root/src/bindings.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-11-10 11:50:46 +0200
committerLars Wirzenius <liw@liw.fi>2022-11-12 09:02:48 +0200
commitd1c2cd39f5a9a1fcfbf6b96af3ab18cc65518462 (patch)
tree5704d9ebffc1d44a338b46840878a5cfb8537809 /src/bindings.rs
parentc0ed7a3b60ad7b98fb7953443a0e0cceb2298666 (diff)
downloadsubplot-d1c2cd39f5a9a1fcfbf6b96af3ab18cc65518462.tar.gz
chore: fix unnecessary borrows found by clippy
Sponsored-by: author
Diffstat (limited to 'src/bindings.rs')
-rw-r--r--src/bindings.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings.rs b/src/bindings.rs
index 8e3531b..98379c9 100644
--- a/src/bindings.rs
+++ b/src/bindings.rs
@@ -787,7 +787,7 @@ mod test_bindings {
lazy_static! {
static ref KIND_PATTERNS: HashMap<CaptureType, Regex> = {
let mut map = HashMap::new();
- for ty in (&[
+ for ty in ([
CaptureType::Word,
CaptureType::Text,
CaptureType::Int,