Upstream libfmt commit fmtlib/fmt@d707292 now requires the format function to be const. Adjust the function prototype so it is const and can compile. Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Fixes compiler warning because formatting unscoped enums is deprecated since libfmt 9.