authorgravatar for 51252236+xdBronch@users.noreply.github.comxdBronch <51252236+xdBronch@users.noreply.github.com> 2023-12-02 10:16:29-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-12-08 15:58:08+02:00
log7a46c20a79d9724787d55f3e496155bb5332151a
tree5e203cc29d0d3b56ae355265442102d678341bbe
parente9bd10cfda23252fb4188033a2edddd0c94d7fa3

switch to mem.span

Co-authored-by: erikarvstedt <36110478+erikarvstedt@users.noreply.github.com>

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/linux.zig+1-1
...@@ -3621,7 +3621,7 @@ pub const inotify_event = extern struct {...@@ -3621,7 +3621,7 @@ pub const inotify_event = extern struct {
3621 // returns `null` if the directory/file is the one being watched3621 // returns `null` if the directory/file is the one being watched
3622 pub fn getName(self: *const inotify_event) ?[:0]const u8 {3622 pub fn getName(self: *const inotify_event) ?[:0]const u8 {
3623 if (self.len == 0) return null;3623 if (self.len == 0) return null;
3624 return std.mem.sliceTo(@as([*:0]const u8, @ptrCast(self)) + @sizeOf(inotify_event), 0);3624 return std.mem.span(@as([*:0]const u8, @ptrCast(self)) + @sizeOf(inotify_event));
3625 }3625 }
3626};3626};
36273627