lib/fmt/ToBuffer: add constexpr

This commit is contained in:
Max Kellermann
2025-01-11 06:54:15 +01:00
committed by Max Kellermann
parent ad8c2577c4
commit 2c7ca16c4e
2 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@
* descriptor.
*/
[[gnu::const]]
inline StringBuffer<32>
constexpr StringBuffer<32>
ProcFdPath(FileDescriptor fd) noexcept
{
return FmtBuffer<32>("/proc/self/fd/{}", fd.Get());
@@ -24,7 +24,7 @@ ProcFdPath(FileDescriptor fd) noexcept
* descriptor.
*/
[[gnu::const]]
inline StringBuffer<32>
constexpr StringBuffer<32>
ProcFdinfoPath(FileDescriptor fd) noexcept
{
return FmtBuffer<32>("/proc/self/fdinfo/{}", fd.Get());