From f9d32ad706b06bdc2e24b2ba2143bb98268b318d Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 16 Jul 2024 16:40:36 -0400 Subject: [PATCH] [wpiutil] Struct: Remove explicit span length from int8 (#6840) --- wpiutil/src/main/native/include/wpi/struct/Struct.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wpiutil/src/main/native/include/wpi/struct/Struct.h b/wpiutil/src/main/native/include/wpi/struct/Struct.h index 085b50bb34..f46d8dc50b 100644 --- a/wpiutil/src/main/native/include/wpi/struct/Struct.h +++ b/wpiutil/src/main/native/include/wpi/struct/Struct.h @@ -478,10 +478,8 @@ struct Struct { static constexpr std::string_view GetTypeString() { return "struct:int8"; } static constexpr size_t GetSize() { return 1; } static constexpr std::string_view GetSchema() { return "int8 value"; } - static int8_t Unpack(std::span data) { return data[0]; } - static void Pack(std::span data, int8_t value) { - data[0] = value; - } + static int8_t Unpack(std::span data) { return data[0]; } + static void Pack(std::span data, int8_t value) { data[0] = value; } }; /**