Skip to content

Commit

Permalink
fix import widestring in ros2_bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Apr 30, 2024
1 parent 98d219c commit 92e0edb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libraries/extensions/ros2-bridge/msg-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ where
quote! {},
quote! {
use serde::{Serialize, Deserialize};
use widestring;
},
quote! {},
)
Expand All @@ -263,6 +262,12 @@ where
}
}

impl ffi::U16String {
fn from_str(arg: &str) -> Self {
Self { chars: crate::_core::widestring::U16String::from_str(arg).into_vec()}
}
}

#(#message_struct_impls)*

#cxx_bridge_impls
Expand Down

0 comments on commit 92e0edb

Please sign in to comment.