···11---
22source: bin/tests/main.rs
33-expression: "&out"
33+expression: "&stdout"
44---
55[W19] Warning: This `if` expression can be simplified with `or`
66- ╭─[data/useless_has_attr.nix:3:4]
66+ ╭─[tests/data/useless_has_attr.nix:3:4]
77 │
88 3 │ (if x ? a then x.a else default)
99 · ───────────────┬──────────────
1010 · ╰──────────────── Consider using x.a or default instead of this if expression
1111───╯
1212[W19] Warning: This `if` expression can be simplified with `or`
1313- ╭─[data/useless_has_attr.nix:4:4]
1313+ ╭─[tests/data/useless_has_attr.nix:4:4]
1414 │
1515 4 │ (if x.a ? b then x.a.b else default)
1616 · ─────────────────┬────────────────
1717 · ╰────────────────── Consider using x.a.b or default instead of this if expression
1818───╯
1919[W19] Warning: This `if` expression can be simplified with `or`
2020- ╭─[data/useless_has_attr.nix:5:4]
2020+ ╭─[tests/data/useless_has_attr.nix:5:4]
2121 │
2222 5 │ (if x ? a.b then x.a.b else default)
2323 · ─────────────────┬────────────────
2424 · ╰────────────────── Consider using x.a.b or default instead of this if expression
2525───╯
2626[W19] Warning: This `if` expression can be simplified with `or`
2727- ╭─[data/useless_has_attr.nix:8:4]
2727+ ╭─[tests/data/useless_has_attr.nix:8:4]
2828 │
2929 8 │ (if x ? a then x.a else if b then c else d)
3030 · ────────────────────┬────────────────────
3131 · ╰────────────────────── Consider using x.a or (if b then c else d) instead of this if expression
3232───╯
3333[W19] Warning: This `if` expression can be simplified with `or`
3434- ╭─[data/useless_has_attr.nix:9:4]
3434+ ╭─[tests/data/useless_has_attr.nix:9:4]
3535 │
3636 9 │ (if x ? a then x.a else b.c)
3737 · ─────────────┬────────────