From 63acece1a497974fb3f07b5445ea3537f28324bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 18 Apr 2022 06:48:23 +0300 Subject: [PATCH] trivial style --- lib/PackedUser.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)