Fix generic can writer

Changing type std::string to std::string_view

Signed-off-by: Niko Sohmers <nikolai@sohmers.com>
Change-Id: I183908c1ae72688e78f45d33c52316bb0bf841ad
diff --git a/frc971/wpilib/generic_can_writer.h b/frc971/wpilib/generic_can_writer.h
index 7555c0a..f317b59 100644
--- a/frc971/wpilib/generic_can_writer.h
+++ b/frc971/wpilib/generic_can_writer.h
@@ -15,9 +15,9 @@
  public:
   GenericCANWriter(
       ::aos::EventLoop *event_loop,
-      std::function<
-          void(const T &output,
-               std::map<std::string, std::shared_ptr<TalonFX>> talonfx_map)>
+      std::function<void(
+          const T &output,
+          std::map<std::string_view, std::shared_ptr<TalonFX>> talonfx_map)>
           write_callback)
       : LoopOutputHandler<T>(event_loop, "/superstructure"),
         write_callback_(write_callback) {
@@ -66,7 +66,7 @@
 
   std::function<void(
       const T &output,
-      std::map<std::string, std::shared_ptr<TalonFX>> talonfx_map)>
+      std::map<std::string_view, std::shared_ptr<TalonFX>> talonfx_map)>
       write_callback_;
 };