From a254edfcd27f1bba5eb7eacb11bfcd077bd1af16 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 30 Jan 2022 12:10:21 +0530 Subject: new lint: faster_zipattrswith --- bin/tests/snapshots/main__faster_zipattrswith.snap | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bin/tests/snapshots/main__faster_zipattrswith.snap (limited to 'bin/tests/snapshots') 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 @@ +--- +source: bin/tests/main.rs +expression: "&out" + +--- +[W16] Warning: Found lib.zipAttrsWith + ╭─[data/faster_zipattrswith.nix:3:7] + │ + 3 │ _ = lib.zipAttrsWith (name: values: values) [{ a = 1; } { a = 2; b = 3; }]; + · ────────┬─────── + · ╰───────── Prefer builtins.zipAttrsWith over lib.zipAttrsWith +───╯ +[W16] Warning: Found lib.zipAttrsWith + ╭─[data/faster_zipattrswith.nix:6:7] + │ + 6 │ _ = nixpkgs.lib.zipAttrsWith (name: values: values) [{ a = 1; } { a = 2; b = 3; }]; + · ────────────┬─────────── + · ╰───────────── Prefer builtins.zipAttrsWith over nixpkgs.lib.zipAttrsWith +───╯ + -- cgit v1.2.3