fixed compilation errors for doc tests

This commit is contained in:
Dmitry Stepanov
2026-07-08 19:59:24 +03:00
parent fa4a4d438a
commit aba8743714
11 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ impl TaskPoolHandler {
/// # use fyrox_impl::core::reflect::prelude::*;
/// # use std::{fs::File, io::Read};
///
/// #[derive(Visit, Reflect, Debug)]
/// #[derive(Visit, Reflect, PartialEq, Debug)]
/// #[reflect(non_cloneable, type_uuid = "a7ba17c1-6104-4938-9ba7-ba479acf716a")]
/// struct MyGame {
/// data: Option<Vec<u8>>,
@@ -181,7 +181,7 @@ impl TaskPoolHandler {
/// #
/// # use fyrox_impl::plugin::error::GameResult;
/// #
/// #[derive(Reflect, Visit, Default, Debug, Clone)]
/// #[derive(Reflect, Visit, PartialEq, Default, Debug, Clone)]
/// #[reflect(type_uuid = "f5ded79e-6101-4e23-b20d-48cbdb25d87a")]
/// struct MyScript;
///
+4 -4
View File
@@ -244,7 +244,7 @@ impl<'a, 'b> PluginContext<'a, 'b> {
/// # };
/// # use std::str::FromStr;
///
/// #[derive(Default, Visit, Reflect, Debug)]
/// #[derive(Default, Visit, PartialEq, Reflect, Debug)]
/// #[reflect(non_cloneable, type_uuid = "ce9c7ff9-f490-4274-89c9-0b53b9f80532")]
/// struct MyGame {}
///
@@ -315,7 +315,7 @@ impl<'a, 'b> PluginContext<'a, 'b> {
/// # };
/// # use std::str::FromStr;
/// #
/// #[derive(Default, Visit, Reflect, Debug)]
/// #[derive(Default, Visit, PartialEq, Reflect, Debug)]
/// #[reflect(non_cloneable, type_uuid = "65b2da10-3926-48e4-93b4-01193cdc11ca")]
/// struct MyGame {}
///
@@ -493,7 +493,7 @@ impl dyn Plugin {
/// # };
/// # use std::str::FromStr;
///
/// #[derive(Default, Visit, Reflect, Debug)]
/// #[derive(Default, Visit, PartialEq, Reflect, Debug)]
/// #[reflect(non_cloneable, type_uuid = "342b2ef7-210d-465f-bcae-f59aa3a96420")]
/// struct MyPlugin {}
///
@@ -535,7 +535,7 @@ impl dyn Plugin {
/// # scene::{node::Node, Scene},
/// # };
/// # use std::str::FromStr;
/// #[derive(Default, Visit, Reflect, Debug)]
/// #[derive(Default, Visit, PartialEq, Reflect, Debug)]
/// #[reflect(non_cloneable, type_uuid = "94801cca-3f50-4bef-9b6f-ee2edd9dcb2b")]
/// struct MyPlugin {
/// scene: Handle<Scene>,
+4 -4
View File
@@ -228,7 +228,7 @@ pub trait BaseScript: Visit + Reflect + Send + Debug + 'static {
/// core::uuid::uuid,
/// };
///
/// #[derive(Reflect, Visit, Debug, Clone)]
/// #[derive(Reflect, Visit, PartialEq, Debug, Clone)]
/// // Use https://www.uuidgenerator.net/ to generate new UUID or an extension for your IDE.
/// #[reflect(type_uuid = "4cfbe65e-a2c1-474f-b123-57516d80b1f8")]
/// struct MyScript { }
@@ -335,7 +335,7 @@ pub struct ScriptContext<'a, 'b, 'c> {
/// # script::{ScriptContext, ScriptTrait},
/// # };
/// #
/// #[derive(Visit, Reflect, Default, Debug)]
/// #[derive(Visit, Reflect, PartialEq, Default, Debug)]
/// #[reflect(non_cloneable, type_uuid = "bf06a1f4-5e76-4560-a260-e64187a9484b")]
/// struct Game {
/// player_name: String,
@@ -343,7 +343,7 @@ pub struct ScriptContext<'a, 'b, 'c> {
///
/// impl Plugin for Game {}
///
/// #[derive(Visit, Reflect, Clone, Default, Debug)]
/// #[derive(Visit, Reflect, PartialEq, Clone, Default, Debug)]
/// #[reflect(type_uuid = "f732654e-5e3c-4b52-9a3d-44c0cfb14e18")]
/// struct MyScript {}
///
@@ -660,7 +660,7 @@ pub trait ScriptTrait: BaseScript {
///
/// struct Message;
///
/// #[derive(Reflect, Visit, Debug, Clone)]
/// #[derive(Reflect, Visit, PartialEq, Debug, Clone)]
/// #[reflect(type_uuid = "2649187c-46c2-485f-bf62-c9d3aef0c432")]
/// struct MyScript {}
///