Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/player/filtergateway/src/vehicle/dds/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ impl DdsManager {

// Include generated DDS types at runtime
#[allow(unused)]
#[allow(non_snake_case)]
pub mod dds_types {
#![allow(non_snake_case)]
#[allow(unused_variables, unused_imports)]
include! {
concat!(env!("OUT_DIR"), "/dds_types.rs")
Expand All @@ -268,21 +268,22 @@ pub mod dds_type_metadata {

/// Returns a vector of available DDS type names obtained from the generated type metadata.
pub fn get_available_types() -> Vec<String> {
dds_type_metadata::get_type_metadata()
generated_metadata::get_type_metadata()
.keys()
.cloned()
.collect()
}

// Always include the generated type metadata; this file is generated by build.rs.

pub mod dds_type_metadata {
pub mod generated_metadata {
#[allow(unused_variables, unused_imports)]
include! {
concat!(env!("OUT_DIR"), "/dds_type_metadata.rs")
}
}
}

// Include generated type registry
#[allow(unused)]
pub mod dds_type_registry {
Expand Down
Loading