diff options
| author | Pat Tullmann <pat.github@tullmann.org> | 2023-10-09 06:44:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-09 16:44:14 +0300 |
| commit | 57874ce619c098a4affd6804a71e0604ff3874c8 (patch) | |
| tree | d54550d2f14df5db035f4f1fdd5a80c0f36e3b0f /src/Sema.zig | |
| parent | 54e7f58fcb8cd3fbfd1b1a3efd090c296b0e728b (diff) | |
| download | zig-57874ce619c098a4affd6804a71e0604ff3874c8.tar.gz zig-57874ce619c098a4affd6804a71e0604ff3874c8.zip | |
lib/std/fs/test.zig: cleanup (#17443)
* fs/test.zig: use arena allocator more consistently
* fs/test.zig: remove unnecessary type information
Zig can (now?) implicitly cast a `&.{ "foo"}` when passed to
`fs.path.join()`, so the `[_][]const u8` is unnecessary.
* fs/test.zig: Use fs.path.join() for longer paths
Replace long path constructions (that use several "++ path_sep ++")
with a single call to `fs.path.join`. Seems more readable to me.
* fs/test.zig: fmt
Diffstat (limited to 'src/Sema.zig')
0 files changed, 0 insertions, 0 deletions
