Skip to content

Commit 5f5a639

Browse files
committed
fix: fix Concatenation test by accepting new insta snapshot
The new behavior is reasonable. In case of a double empty concatenation, which is already pretty uncommon, the lint would suggest to remove the second empty concat first instead of the first empty concat.
1 parent 8b2759a commit 5f5a639

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bin/tests/snapshots/main__empty_list_concat.snap

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
source: bin/tests/main.rs
3-
expression: "&out"
4-
3+
expression: "& out"
54
---
65
[W23] Warning: Unnecessary concatenation with empty list
76
╭─[data/empty_list_concat.nix:6:4]
@@ -32,10 +31,9 @@ expression: "&out"
3231
· ╰──────── Concatenation with the empty list, [], is a no-op
3332
────╯
3433
[W23] Warning: Unnecessary concatenation with empty list
35-
╭─[data/empty_list_concat.nix:15:4]
34+
╭─[data/empty_list_concat.nix:15:10]
3635
3736
15 │ ([] ++ [] ++ [])
38-
· ────┬───
39-
· ╰───── Concatenation with the empty list, [], is a no-op
37+
· ────┬───
38+
· ╰───── Concatenation with the empty list, [], is a no-op
4039
────╯
41-

0 commit comments

Comments
 (0)