From fcb3f957592dab6fa6529e3286d6a1f7756ad58b Mon Sep 17 00:00:00 2001 From: C191239 Date: Thu, 26 Oct 2023 09:21:18 +0800 Subject: [PATCH] fmt --- core/src/text/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/text/mod.rs b/core/src/text/mod.rs index f3c806d..8d998c3 100644 --- a/core/src/text/mod.rs +++ b/core/src/text/mod.rs @@ -17,6 +17,7 @@ use rimecraft_primitives::ErasedSerDeUpdate; ///TODO: Implement net.minecraft.text.Text pub trait Text { fn style(&self) -> &Style; + fn siblings(&self) -> Vec>; } ///The style of a [`Text`].\ @@ -244,7 +245,9 @@ impl HoverEvent { #[inline] pub fn value(&self) -> Option<&T> { if TypeId::of::() == self.contents.1 { - Some(unsafe { &*(&*self.contents.0 as *const (dyn UpdDebug + Send + Sync) as *const T) }) + Some(unsafe { + &*(&*self.contents.0 as *const (dyn UpdDebug + Send + Sync) as *const T) + }) } else { None }