We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88bc95d commit 6852fccCopy full SHA for 6852fcc
crates/bevy_ecs/src/system/system_param.rs
@@ -547,6 +547,19 @@ impl<'a> SystemParamFetch<'a> for CommandQueue {
547
/// ```
548
pub struct Local<'a, T: Component>(&'a mut T);
549
550
+impl<'a, T: Component> Debug for Local<'a, T>
551
+where
552
+ T: Debug,
553
+{
554
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
555
+ f.write_str("NonSendMut(")?;
556
+ Debug::fmt(self.0, f)?;
557
+ f.write_str(")")?;
558
+
559
+ Ok(())
560
+ }
561
+}
562
563
impl<'a, T: Component> Deref for Local<'a, T> {
564
type Target = T;
565
0 commit comments