diff options
Diffstat (limited to 'bin/tests/snapshots/main__useless_parens.snap')
-rw-r--r-- | bin/tests/snapshots/main__useless_parens.snap | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/bin/tests/snapshots/main__useless_parens.snap b/bin/tests/snapshots/main__useless_parens.snap new file mode 100644 index 0000000..d44176e --- /dev/null +++ b/bin/tests/snapshots/main__useless_parens.snap | |||
@@ -0,0 +1,48 @@ | |||
1 | --- | ||
2 | source: bin/tests/main.rs | ||
3 | expression: "&out" | ||
4 | |||
5 | --- | ||
6 | [W08] Warning: These parentheses can be omitted | ||
7 | ╭─[data/useless_parens.nix:16:3] | ||
8 | │ | ||
9 | 16 │ (null) | ||
10 | · ───┬── | ||
11 | · ╰──── Useless parentheses around body of let expression | ||
12 | ────╯ | ||
13 | [W08] Warning: These parentheses can be omitted | ||
14 | ╭─[data/useless_parens.nix:4:9] | ||
15 | │ | ||
16 | 4 │ b = ("hello"); | ||
17 | · ────┬──── | ||
18 | · ╰────── Useless parentheses around value in binding | ||
19 | ───╯ | ||
20 | [W08] Warning: These parentheses can be omitted | ||
21 | ╭─[data/useless_parens.nix:5:9] | ||
22 | │ | ||
23 | 5 │ c = (d); | ||
24 | · ─┬─ | ||
25 | · ╰─── Useless parentheses around value in binding | ||
26 | ───╯ | ||
27 | [W08] Warning: These parentheses can be omitted | ||
28 | ╭─[data/useless_parens.nix:6:9] | ||
29 | │ | ||
30 | 6 │ e = ({ f = 2; }); | ||
31 | · ──────┬───── | ||
32 | · ╰─────── Useless parentheses around value in binding | ||
33 | ───╯ | ||
34 | [W08] Warning: These parentheses can be omitted | ||
35 | ╭─[data/useless_parens.nix:10:7] | ||
36 | │ | ||
37 | 10 │ g = (1 + 2); | ||
38 | · ───┬─── | ||
39 | · ╰───── Useless parentheses around value in binding | ||
40 | ────╯ | ||
41 | [W08] Warning: These parentheses can be omitted | ||
42 | ╭─[data/useless_parens.nix:11:7] | ||
43 | │ | ||
44 | 11 │ h = ({ inherit i; }); | ||
45 | · ────────┬─────── | ||
46 | · ╰───────── Useless parentheses around value in binding | ||
47 | ────╯ | ||
48 | |||