aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/snapshots/main__useless_parens.snap
blob: d44176e5f133dc202f3f984c750f125385848008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
source: bin/tests/main.rs
expression: "&out"

---
[W08] Warning: These parentheses can be omitted
    ╭─[data/useless_parens.nix:16:3]
    │
 16 │   (null)
    ·   ───┬──  
    ·      ╰──── Useless parentheses around body of let expression
────╯
[W08] Warning: These parentheses can be omitted
   ╭─[data/useless_parens.nix:4:9]
   │
 4 │     b = ("hello");
   ·         ────┬────  
   ·             ╰────── Useless parentheses around value in binding
───╯
[W08] Warning: These parentheses can be omitted
   ╭─[data/useless_parens.nix:5:9]
   │
 5 │     c = (d);
   ·         ─┬─  
   ·          ╰─── Useless parentheses around value in binding
───╯
[W08] Warning: These parentheses can be omitted
   ╭─[data/useless_parens.nix:6:9]
   │
 6 │     e = ({ f = 2; });
   ·         ──────┬─────  
   ·               ╰─────── Useless parentheses around value in binding
───╯
[W08] Warning: These parentheses can be omitted
    ╭─[data/useless_parens.nix:10:7]
    │
 10 │   g = (1 + 2);
    ·       ───┬───  
    ·          ╰───── Useless parentheses around value in binding
────╯
[W08] Warning: These parentheses can be omitted
    ╭─[data/useless_parens.nix:11:7]
    │
 11 │   h = ({ inherit i; });
    ·       ────────┬───────  
    ·               ╰───────── Useless parentheses around value in binding
────╯