diff --git a/lib/PackedUser.zig b/lib/PackedUser.zig index 2181480..4d9fbbe 100644 --- a/lib/PackedUser.zig +++ b/lib/PackedUser.zig @@ -161,9 +161,7 @@ pub fn packTo( .name_len = name_len, .gecos_len = gecos_len, }; - const innerBytes = mem.asBytes(&inner); - - try arr.*.appendSlice(innerBytes[0..@sizeOf(Inner)]); + try arr.*.appendSlice(mem.asBytes(&inner)[0..@sizeOf(Inner)]); try arr.*.appendSlice(user.home); if (!inner.name_is_a_suffix)