network: use fmt for format

Fixes the gentoo build
This commit is contained in:
Austin Horstman 2024-07-15 09:44:39 -05:00
parent 47d7324a19
commit 895c870d02
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ void waybar::modules::Network::parseBssid(struct nlattr **bss) {
auto bssid = static_cast<uint8_t *>(nla_data(bss[NL80211_BSS_BSSID])); auto bssid = static_cast<uint8_t *>(nla_data(bss[NL80211_BSS_BSSID]));
auto bssid_len = nla_len(bss[NL80211_BSS_BSSID]); auto bssid_len = nla_len(bss[NL80211_BSS_BSSID]);
if (bssid_len == 6) { if (bssid_len == 6) {
bssid_ = std::format("{:x}:{:x}:{:x}:{:x}:{:x}:{:x}", bssid[0], bssid[1], bssid[2], bssid[3], bssid_ = fmt::format("{:x}:{:x}:{:x}:{:x}:{:x}:{:x}", bssid[0], bssid[1], bssid[2], bssid[3],
bssid[4], bssid[5]); bssid[4], bssid[5]);
} }
} }