Take out array size for constexpr std::array

C++20 supports initializing array without size using std::to_array

Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I7f955ddaf7c4368f364eae6ff401b0916f5cbe6f
diff --git a/src/FanMain.cpp b/src/FanMain.cpp
index 9f1a21e..786498c 100644
--- a/src/FanMain.cpp
+++ b/src/FanMain.cpp
@@ -42,10 +42,10 @@
 namespace fs = std::filesystem;
 
 // The following two structures need to be consistent
-static constexpr std::array<const char*, 3> sensorTypes = {
-    "xyz.openbmc_project.Configuration.AspeedFan",
-    "xyz.openbmc_project.Configuration.I2CFan",
-    "xyz.openbmc_project.Configuration.NuvotonFan"};
+static auto sensorTypes{std::to_array<const char*>(
+    {"xyz.openbmc_project.Configuration.AspeedFan",
+     "xyz.openbmc_project.Configuration.I2CFan",
+     "xyz.openbmc_project.Configuration.NuvotonFan"})};
 
 enum FanTypes
 {