From e3bcd9e5972b2df80b5cfb762e917027a3c429d4 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 27 Feb 2024 08:08:21 -0500 Subject: [PATCH] Shorten the length of a lambda. (#106) This should make it compatible with both uncrustify 0.72 and uncrustify 0.78. Signed-off-by: Chris Lalancette --- test/interactive_markers/test_interactive_marker_server.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/interactive_markers/test_interactive_marker_server.cpp b/test/interactive_markers/test_interactive_marker_server.cpp index 60b4d0fc..964fc0d7 100644 --- a/test/interactive_markers/test_interactive_marker_server.cpp +++ b/test/interactive_markers/test_interactive_marker_server.cpp @@ -305,9 +305,8 @@ TEST_F(TestInteractiveMarkerServerWithMarkers, feedback_communication) // Register a callback function to capture output visualization_msgs::msg::InteractiveMarkerFeedback output_feedback; - auto callback = - [&output_feedback] - (interactive_markers::InteractiveMarkerServer::FeedbackConstSharedPtr feedback) + using Server = interactive_markers::InteractiveMarkerServer; + auto callback = [&output_feedback](Server::FeedbackConstSharedPtr feedback) { output_feedback = *feedback; };