Fix some deprecation warnings due to fmtlib upgrade (#3459)

This commit is contained in:
Peter Johnson
2021-06-23 21:57:32 -07:00
committed by GitHub
parent 2067d7e300
commit ea0b8f48e6
4 changed files with 10 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ NetworkTableEntry NetworkTable::GetEntry(std::string_view key) const {
NT_Entry& entry = m_entries[key];
if (entry == 0) {
fmt::memory_buffer buf;
fmt::format_to(buf, "{}/{}", m_path, key);
fmt::format_to(fmt::appender{buf}, "{}/{}", m_path, key);
entry = nt::GetEntry(m_inst, {buf.data(), buf.size()});
}
return NetworkTableEntry{entry};