diff options
author | Akshay <[email protected]> | 2022-01-30 07:00:51 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-01-30 07:00:51 +0000 |
commit | 7457498ea64c4542b501d4c03ec2ff617763b070 (patch) | |
tree | 6e8af042bf948d25dff858a61d8016226dc2c834 /bin/tests/snapshots/main__deprecated_to_path.snap | |
parent | adacdb07ca7dca0e6dfaaf2379688524f690c8b8 (diff) |
new lint: deprecated_to_path
Diffstat (limited to 'bin/tests/snapshots/main__deprecated_to_path.snap')
-rw-r--r-- | bin/tests/snapshots/main__deprecated_to_path.snap | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bin/tests/snapshots/main__deprecated_to_path.snap b/bin/tests/snapshots/main__deprecated_to_path.snap new file mode 100644 index 0000000..08e0dbe --- /dev/null +++ b/bin/tests/snapshots/main__deprecated_to_path.snap | |||
@@ -0,0 +1,34 @@ | |||
1 | --- | ||
2 | source: bin/tests/main.rs | ||
3 | expression: "&out" | ||
4 | |||
5 | --- | ||
6 | [W17] Warning: Found usage of deprecated builtin toPath | ||
7 | ╭─[data/deprecated_to_path.nix:2:4] | ||
8 | │ | ||
9 | 2 │ (builtins.toPath x) | ||
10 | · ────────┬──────── | ||
11 | · ╰────────── builtins.toPath is deprecated, see :doc builtins.toPath within the REPL for more | ||
12 | ───╯ | ||
13 | [W17] Warning: Found usage of deprecated builtin toPath | ||
14 | ╭─[data/deprecated_to_path.nix:3:4] | ||
15 | │ | ||
16 | 3 │ (toPath x) | ||
17 | · ────┬─── | ||
18 | · ╰───── toPath is deprecated, see :doc builtins.toPath within the REPL for more | ||
19 | ───╯ | ||
20 | [W17] Warning: Found usage of deprecated builtin toPath | ||
21 | ╭─[data/deprecated_to_path.nix:4:4] | ||
22 | │ | ||
23 | 4 │ (toPath "/abc/def") | ||
24 | · ────────┬──────── | ||
25 | · ╰────────── toPath is deprecated, see :doc builtins.toPath within the REPL for more | ||
26 | ───╯ | ||
27 | [W17] Warning: Found usage of deprecated builtin toPath | ||
28 | ╭─[data/deprecated_to_path.nix:5:4] | ||
29 | │ | ||
30 | 5 │ (builtins.toPath "/some/path") | ||
31 | · ──────────────┬───────────── | ||
32 | · ╰─────────────── builtins.toPath is deprecated, see :doc builtins.toPath within the REPL for more | ||
33 | ───╯ | ||
34 | |||