From 94db799db282c8b1e0222f1699e6a6420b5fd544 Mon Sep 17 00:00:00 2001 From: Martin Dahl Date: Thu, 21 Nov 2024 13:45:13 +0100 Subject: [PATCH] fix message generation for WChar idl type --- r2r_msg_gen/src/introspection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2r_msg_gen/src/introspection.rs b/r2r_msg_gen/src/introspection.rs index 4b330d041..1f95a5eb7 100644 --- a/r2r_msg_gen/src/introspection.rs +++ b/r2r_msg_gen/src/introspection.rs @@ -234,7 +234,7 @@ impl MemberType { MemberType::F32 => quote! { f32 }, MemberType::F64 => quote! { f64 }, MemberType::Char => quote! { std::ffi::c_char }, - MemberType::WChar => quote! { widestring::WideChar }, + MemberType::WChar => quote! { u16 }, MemberType::String => quote! { std::string::String }, MemberType::WString => quote! { std::string::String }, MemberType::Message => quote! { message },