mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibc] Use std::string_view instead of Twine (#3380)
Use fmtlib where needed for string formatting into std::string_view.
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
PrintCommand::PrintCommand(const wpi::Twine& message)
|
||||
: CommandHelper{[str = message.str()] { wpi::outs() << str << "\n"; }, {}} {
|
||||
}
|
||||
PrintCommand::PrintCommand(std::string_view message)
|
||||
: CommandHelper{
|
||||
[str = std::string(message)] { wpi::outs() << str << "\n"; }, {}} {}
|
||||
|
||||
bool PrintCommand::RunsWhenDisabled() const {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user