Skip to content

Commit

Permalink
Use function reference instead of lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Jan 26, 2024
1 parent 8af9a7d commit d7469d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions subprojects/robotpy-wpilib/gen/SysIdRoutineLog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ enums:
State:
subpackage: sysid
inline_code: |
.def("__str__", [](State self) {
return SysIdRoutineLog::StateEnumToString(self);
})
.def("__str__", &SysIdRoutineLog::StateEnumToString)
classes:
SysIdRoutineLog:
Expand Down

0 comments on commit d7469d3

Please sign in to comment.