mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Fix some deprecation warnings due to fmtlib upgrade (#3459)
This commit is contained in:
@@ -140,7 +140,7 @@ Notifier& Notifier::operator=(Notifier&& rhs) {
|
||||
|
||||
void Notifier::SetName(std::string_view name) {
|
||||
fmt::memory_buffer buf;
|
||||
fmt::format_to(buf, "{}", name);
|
||||
fmt::format_to(fmt::appender{buf}, "{}", name);
|
||||
buf.push_back('\0'); // null terminate
|
||||
int32_t status = 0;
|
||||
HAL_SetNotifierName(m_notifier, buf.data(), &status);
|
||||
|
||||
Reference in New Issue
Block a user