trivial style

This commit is contained in:
Motiejus Jakštys 2022-04-18 06:48:23 +03:00 committed by Motiejus Jakštys
parent 28e8f11f91
commit 63acece1a4

View File

@ -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)