From 2771803cbd255c894dae379e5882d9ee971e7cb5 Mon Sep 17 00:00:00 2001 From: Periwink Date: Wed, 2 Apr 2025 23:51:20 -0400 Subject: [PATCH] add reflect for SocketAddr (#18676) --- crates/bevy_reflect/src/impls/std.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/bevy_reflect/src/impls/std.rs b/crates/bevy_reflect/src/impls/std.rs index 54d8393e7a..4be1521b7e 100644 --- a/crates/bevy_reflect/src/impls/std.rs +++ b/crates/bevy_reflect/src/impls/std.rs @@ -1208,6 +1208,14 @@ macro_rules! impl_reflect_for_hashset { impl_type_path!(::bevy_platform_support::hash::NoOpHash); impl_type_path!(::bevy_platform_support::hash::FixedHasher); +impl_reflect_opaque!(::core::net::SocketAddr( + Clone, + Debug, + Hash, + PartialEq, + Serialize, + Deserialize +)); #[cfg(feature = "std")] impl_reflect_for_hashset!(::std::collections::HashSet);