aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/snapshots
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-01-30 06:40:21 +0000
committerAkshay <[email protected]>2022-01-30 06:40:21 +0000
commita254edfcd27f1bba5eb7eacb11bfcd077bd1af16 (patch)
tree6cf3eb3df65952b49f6539607741eca2e65ba149 /bin/tests/snapshots
parenteffe06e2f16f5b6faab258ff2b031dd5f14d59ec (diff)
new lint: faster_zipattrswith
Diffstat (limited to 'bin/tests/snapshots')
-rw-r--r--bin/tests/snapshots/main__faster_zipattrswith.snap20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/tests/snapshots/main__faster_zipattrswith.snap b/bin/tests/snapshots/main__faster_zipattrswith.snap
new file mode 100644
index 0000000..6b21322
--- /dev/null
+++ b/bin/tests/snapshots/main__faster_zipattrswith.snap
@@ -0,0 +1,20 @@
1---
2source: bin/tests/main.rs
3expression: "&out"
4
5---
6[W16] Warning: Found lib.zipAttrsWith
7 ╭─[data/faster_zipattrswith.nix:3:7]
8
9 3 │ _ = lib.zipAttrsWith (name: values: values) [{ a = 1; } { a = 2; b = 3; }];
10 · ────────┬───────
11 · ╰───────── Prefer builtins.zipAttrsWith over lib.zipAttrsWith
12───╯
13[W16] Warning: Found lib.zipAttrsWith
14 ╭─[data/faster_zipattrswith.nix:6:7]
15
16 6 │ _ = nixpkgs.lib.zipAttrsWith (name: values: values) [{ a = 1; } { a = 2; b = 3; }];
17 · ────────────┬───────────
18 · ╰───────────── Prefer builtins.zipAttrsWith over nixpkgs.lib.zipAttrsWith
19───╯
20