From f6450101250c8952ec41f3fa5c6240b19a499822 Mon Sep 17 00:00:00 2001 From: Peter Hayman Date: Wed, 17 Jan 2024 11:48:10 +1100 Subject: [PATCH] feat: mods allow unused imports --- .../bevy_webxr/src/bevy_utils/_camera/mod.rs | 1 + .../src/bevy_utils/_input_source/mod.rs | 1 + .../src/bevy_utils/_materials/mod.rs | 1 + .../bevy_webxr/src/bevy_utils/_plugins/mod.rs | 1 + crates/bevy_webxr/src/bevy_utils/_xr/mod.rs | 1 + crates/bevy_webxr/src/bevy_utils/mod.rs | 1 + crates/bevy_webxr/src/bevy_web_asset/mod.rs | 1 + crates/bevy_webxr/src/demo/mod.rs | 1 + crates/bevy_webxr/src/utils/mod.rs | 1 + crates/bevy_webxr/src/xr_utils/mod.rs | 1 + crates/forky/forky_ai/src/chat/mod.rs | 1 + crates/forky/forky_ai/test/chat/mod.rs | 1 + crates/forky/forky_ai/test/mod.rs | 1 + crates/forky/forky_bevy/src/components/mod.rs | 1 + crates/forky/forky_bevy/src/extensions/mod.rs | 1 + crates/forky/forky_bevy/src/extensions/vec.rs | 2 +- .../forky/forky_bevy/test/extensions/mod.rs | 1 + crates/forky/forky_bevy/test/mod.rs | 1 + crates/forky/forky_cli/src/auto_mod/mod.rs | 1 + crates/forky/forky_cli/src/common/mod.rs | 1 + crates/forky/forky_cli/src/server/mod.rs | 1 + crates/forky/forky_cli/src/style/mod.rs | 1 + crates/forky/forky_cli/src/watch/mod.rs | 1 + crates/forky/forky_cli/test/files/mod.rs | 1 + .../test/files/test_dir/__test_sub_dir/mod.rs | 1 + .../forky_cli/test/files/test_dir/mod.rs | 1 + crates/forky/forky_cli/test/mod.rs | 1 + crates/forky/forky_core/src/extensions/mod.rs | 1 + .../forky/forky_core/src/forky_event/mod.rs | 1 + crates/forky/forky_core/src/graph/mod.rs | 1 + crates/forky/forky_core/src/lib.rs | 4 +- crates/forky/forky_core/src/macros/macros.rs | 82 +++++++++---------- crates/forky/forky_core/src/macros/mod.rs | 1 + crates/forky/forky_core/src/math/mod.rs | 1 + crates/forky/forky_core/src/math_f64/mod.rs | 1 + crates/forky/forky_core/src/net/mod.rs | 1 + crates/forky/forky_core/src/style/mod.rs | 1 + crates/forky/forky_core/src/utility/mod.rs | 1 + crates/forky/forky_core/src/utils/mod.rs | 1 + .../forky/forky_core/test/extensions/mod.rs | 1 + .../forky/forky_core/test/forky_event/mod.rs | 1 + crates/forky/forky_core/test/graph/mod.rs | 1 + crates/forky/forky_core/test/math/mod.rs | 1 + crates/forky/forky_core/test/misc/mod.rs | 1 + crates/forky/forky_core/test/mod.rs | 1 + crates/forky/forky_core/test/pointers/mod.rs | 1 + .../forky/forky_esp/src/__extensions/mod.rs | 1 + crates/forky/forky_esp/src/_core/mod.rs | 1 + crates/forky/forky_esp/src/entry/mod.rs | 1 + crates/forky/forky_fs/src/cli/mod.rs | 1 + .../forky_fs/src/utility/cli_args/mod.rs | 1 + .../forky/forky_fs/src/utility/fs/macros.rs | 28 +++---- crates/forky/forky_fs/src/utility/fs/mod.rs | 1 + crates/forky/forky_fs/src/utility/mod.rs | 1 + .../forky/forky_fs/src/utility/process/mod.rs | 1 + .../forky_fs/src/utility/terminal/mod.rs | 1 + crates/forky/forky_fs/test/mod.rs | 1 + crates/forky/forky_fs/test/utility/mod.rs | 1 + crates/forky/forky_play/src/animation/mod.rs | 1 + crates/forky/forky_play/src/base/mod.rs | 1 + .../forky_play/src/bevy_app_utils/mod.rs | 1 + crates/forky/forky_play/src/camera/mod.rs | 1 + crates/forky/forky_play/src/common/mod.rs | 1 + crates/forky/forky_play/src/debug/mod.rs | 1 + crates/forky/forky_play/src/extensions/mod.rs | 1 + .../forky_play/src/geometry__/bezier/mod.rs | 1 + .../forky_play/src/geometry__/bezier2/mod.rs | 1 + .../forky_play/src/geometry__/bezier3/mod.rs | 1 + crates/forky/forky_play/src/geometry__/mod.rs | 1 + crates/forky/forky_play/src/input/mod.rs | 1 + crates/forky/forky_play/src/materials/mod.rs | 1 + .../forky_play/src/maze/__spawners/mod.rs | 1 + .../forky/forky_play/src/maze/_solvers/mod.rs | 1 + .../src/maze/_utility/char_shape/mod.rs | 1 + .../forky/forky_play/src/maze/_utility/mod.rs | 1 + .../src/maze/_utility/u8_shape/mod.rs | 1 + .../forky_play/src/maze/board_joint/mod.rs | 1 + crates/forky/forky_play/src/maze/mod.rs | 1 + .../forky_play/src/maze/rect_maze/mod.rs | 1 + .../forky/forky_play/src/maze/systems/mod.rs | 1 + crates/forky/forky_play/src/mesh_utils/mod.rs | 1 + crates/forky/forky_play/src/mithril/mod.rs | 1 + crates/forky/forky_play/src/physics/mod.rs | 1 + crates/forky/forky_play/src/plugins/mod.rs | 1 + .../forky/forky_play/src/render_graph/mod.rs | 1 + .../forky_play/src/spline/_solvers/mod.rs | 1 + .../forky_play/src/spline/_spline/mod.rs | 1 + .../src/spline/ecs_graph/_systems/mod.rs | 1 + .../forky_play/src/spline/ecs_graph/mod.rs | 1 + .../forky/forky_play/src/spline/graph/mod.rs | 1 + .../forky/forky_play/src/spline/mesh/mod.rs | 1 + crates/forky/forky_play/src/spline/mod.rs | 1 + .../forky_play/src/spline/physics/mod.rs | 1 + .../forky/forky_play/src/spline/tool/mod.rs | 1 + .../forky/forky_play/src/spline/utils/mod.rs | 1 + .../src/tool/_prepare_systems/mod.rs | 1 + .../forky_play/src/tool/_tool_systems/mod.rs | 1 + crates/forky/forky_play/src/tool/mod.rs | 1 + crates/forky/forky_play/src/utility/mod.rs | 1 + .../forky/forky_play/test/extensions/mod.rs | 1 + crates/forky/forky_play/test/geometry/mod.rs | 1 + crates/forky/forky_play/test/maze/mod.rs | 1 + crates/forky/forky_play/test/misc/mod.rs | 1 + crates/forky/forky_play/test/mod.rs | 1 + crates/forky/forky_play/test/physics/mod.rs | 1 + crates/forky/forky_play/test/spline/mod.rs | 1 + crates/forky/forky_web/src/dom_utils/mod.rs | 1 + crates/forky/forky_web/src/extensions/mod.rs | 1 + crates/forky/forky_web/src/logging/mod.rs | 1 + crates/forky/forky_web/src/net/mod.rs | 1 + crates/forky/forky_web/src/ui/mod.rs | 1 + crates/forky/forky_web/test/mod.rs | 1 + crates/forky/forky_web/test/net/mod.rs | 1 + crates/forky/forky_web/test/ui/mod.rs | 1 + crates/forky/forky_xr/test/mod.rs | 1 + crates/gamai/macros/src/action/mod.rs | 1 + crates/gamai/macros/src/utils/mod.rs | 1 + crates/gamai/src/action/mod.rs | 1 + crates/gamai/src/builtin_nodes/actions/mod.rs | 1 + crates/gamai/src/builtin_nodes/mod.rs | 1 + .../gamai/src/builtin_nodes/selectors/mod.rs | 1 + crates/gamai/src/edge/mod.rs | 1 + crates/gamai/src/extensions/mod.rs | 1 + crates/gamai/src/graph_utils/mod.rs | 1 + crates/gamai/src/node/mod.rs | 1 + crates/gamai/src/prop/mod.rs | 1 + crates/gamai/test/action/mod.rs | 1 + crates/gamai/test/edge/mod.rs | 1 + crates/gamai/test/mod.rs | 1 + crates/gamai/test/node/mod.rs | 1 + crates/gamai/test/selectors/mod.rs | 1 + crates/gamai/test/utils/mod.rs | 1 + crates/sweet/macros/src/macros/mod.rs | 1 + crates/sweet/src/bevy_core_matchers/mod.rs | 1 + crates/sweet/src/bevy_matchers/mod.rs | 1 + crates/sweet/src/common/mod.rs | 1 + crates/sweet/src/matchers/mod.rs | 1 + crates/sweet/src/native/mod.rs | 1 + crates/sweet/src/test_case/mod.rs | 1 + crates/sweet/src/test_runner/mod.rs | 1 + crates/sweet/src/test_suite/mod.rs | 1 + crates/sweet/src/wasm/_matchers/mod.rs | 1 + crates/sweet/src/wasm/_runner/mod.rs | 1 + crates/sweet/src/wasm/_ui/mod.rs | 1 + crates/sweet/src/wasm/_ui/settings/mod.rs | 1 + crates/sweet/src/wasm/mod.rs | 1 + crates/sweet/test/bevy_tests/mod.rs | 1 + crates/sweet/test/common/matcher.rs | 10 ++- crates/sweet/test/common/mod.rs | 1 + crates/sweet/test/mod.rs | 1 + crates/sweet/test/native_tests/mod.rs | 1 + crates/sweet/test/wasm_tests/mod.rs | 1 + justfile | 4 +- 153 files changed, 211 insertions(+), 66 deletions(-) diff --git a/crates/bevy_webxr/src/bevy_utils/_camera/mod.rs b/crates/bevy_webxr/src/bevy_utils/_camera/mod.rs index c7f79f06..0500fb2f 100644 --- a/crates/bevy_webxr/src/bevy_utils/_camera/mod.rs +++ b/crates/bevy_webxr/src/bevy_utils/_camera/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod raw_projection; pub use self::raw_projection::*; pub mod create_views; diff --git a/crates/bevy_webxr/src/bevy_utils/_input_source/mod.rs b/crates/bevy_webxr/src/bevy_utils/_input_source/mod.rs index 23a9862a..1ec95822 100644 --- a/crates/bevy_webxr/src/bevy_utils/_input_source/mod.rs +++ b/crates/bevy_webxr/src/bevy_utils/_input_source/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod webxr_input_profiles; pub use self::webxr_input_profiles::*; pub mod insert_input_sources; diff --git a/crates/bevy_webxr/src/bevy_utils/_materials/mod.rs b/crates/bevy_webxr/src/bevy_utils/_materials/mod.rs index d34ee2ba..e38be509 100644 --- a/crates/bevy_webxr/src/bevy_utils/_materials/mod.rs +++ b/crates/bevy_webxr/src/bevy_utils/_materials/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod replace_standard_material; pub use self::replace_standard_material::*; pub mod unlit_material; diff --git a/crates/bevy_webxr/src/bevy_utils/_plugins/mod.rs b/crates/bevy_webxr/src/bevy_utils/_plugins/mod.rs index 52ed0490..85f1d9dd 100644 --- a/crates/bevy_webxr/src/bevy_utils/_plugins/mod.rs +++ b/crates/bevy_webxr/src/bevy_utils/_plugins/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod run_bevy_webxr; pub use self::run_bevy_webxr::*; pub mod webxr_plugin; diff --git a/crates/bevy_webxr/src/bevy_utils/_xr/mod.rs b/crates/bevy_webxr/src/bevy_utils/_xr/mod.rs index 866f773b..f3b3f905 100644 --- a/crates/bevy_webxr/src/bevy_utils/_xr/mod.rs +++ b/crates/bevy_webxr/src/bevy_utils/_xr/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod conversion; pub use self::conversion::*; pub mod update_xr_resources; diff --git a/crates/bevy_webxr/src/bevy_utils/mod.rs b/crates/bevy_webxr/src/bevy_utils/mod.rs index 353cad05..434cbf0b 100644 --- a/crates/bevy_webxr/src/bevy_utils/mod.rs +++ b/crates/bevy_webxr/src/bevy_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod _plugins; pub use self::_plugins::*; pub mod _camera; diff --git a/crates/bevy_webxr/src/bevy_web_asset/mod.rs b/crates/bevy_webxr/src/bevy_web_asset/mod.rs index 34ffc57f..4323898d 100644 --- a/crates/bevy_webxr/src/bevy_web_asset/mod.rs +++ b/crates/bevy_webxr/src/bevy_web_asset/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod web_asset_io; pub use self::web_asset_io::*; pub mod web_asset_plugin; diff --git a/crates/bevy_webxr/src/demo/mod.rs b/crates/bevy_webxr/src/demo/mod.rs index e56ec8f1..162c0941 100644 --- a/crates/bevy_webxr/src/demo/mod.rs +++ b/crates/bevy_webxr/src/demo/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod demo_scene_plugin; pub use self::demo_scene_plugin::*; diff --git a/crates/bevy_webxr/src/utils/mod.rs b/crates/bevy_webxr/src/utils/mod.rs index 30a3176b..7b9bb199 100644 --- a/crates/bevy_webxr/src/utils/mod.rs +++ b/crates/bevy_webxr/src/utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod web_sys_utils; pub use self::web_sys_utils::*; pub mod math; diff --git a/crates/bevy_webxr/src/xr_utils/mod.rs b/crates/bevy_webxr/src/xr_utils/mod.rs index be349fcc..79ea9a3e 100644 --- a/crates/bevy_webxr/src/xr_utils/mod.rs +++ b/crates/bevy_webxr/src/xr_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod webgl_context; pub use self::webgl_context::*; pub mod test; diff --git a/crates/forky/forky_ai/src/chat/mod.rs b/crates/forky/forky_ai/src/chat/mod.rs index aedca022..317850a8 100644 --- a/crates/forky/forky_ai/src/chat/mod.rs +++ b/crates/forky/forky_ai/src/chat/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod chat_gpt; pub use self::chat_gpt::*; pub mod llm; diff --git a/crates/forky/forky_ai/test/chat/mod.rs b/crates/forky/forky_ai/test/chat/mod.rs index e69de29b..9fb8bc30 100644 --- a/crates/forky/forky_ai/test/chat/mod.rs +++ b/crates/forky/forky_ai/test/chat/mod.rs @@ -0,0 +1 @@ +#![allow(unused_imports)] diff --git a/crates/forky/forky_ai/test/mod.rs b/crates/forky/forky_ai/test/mod.rs index 30a62fc5..f37f84a6 100644 --- a/crates/forky/forky_ai/test/mod.rs +++ b/crates/forky/forky_ai/test/mod.rs @@ -1 +1,2 @@ +#![allow(unused_imports)] pub mod chat; diff --git a/crates/forky/forky_bevy/src/components/mod.rs b/crates/forky/forky_bevy/src/components/mod.rs index 490c0db5..651d73f1 100644 --- a/crates/forky/forky_bevy/src/components/mod.rs +++ b/crates/forky/forky_bevy/src/components/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod orphan_children; pub use self::orphan_children::*; diff --git a/crates/forky/forky_bevy/src/extensions/mod.rs b/crates/forky/forky_bevy/src/extensions/mod.rs index c5fc3e73..0d5807f1 100644 --- a/crates/forky/forky_bevy/src/extensions/mod.rs +++ b/crates/forky/forky_bevy/src/extensions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod vec; pub use self::vec::*; pub mod transform_x; diff --git a/crates/forky/forky_bevy/src/extensions/vec.rs b/crates/forky/forky_bevy/src/extensions/vec.rs index 38fa7b93..3e7cde2a 100644 --- a/crates/forky/forky_bevy/src/extensions/vec.rs +++ b/crates/forky/forky_bevy/src/extensions/vec.rs @@ -1,6 +1,6 @@ use bevy_math::prelude::*; use extend::ext; -use forky_core::utility::random_value; +use forky_core::prelude::*; #[ext] pub impl Vec3 { diff --git a/crates/forky/forky_bevy/test/extensions/mod.rs b/crates/forky/forky_bevy/test/extensions/mod.rs index 86a4933a..f5b4d486 100644 --- a/crates/forky/forky_bevy/test/extensions/mod.rs +++ b/crates/forky/forky_bevy/test/extensions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod app; pub use self::app::*; pub mod quat; diff --git a/crates/forky/forky_bevy/test/mod.rs b/crates/forky/forky_bevy/test/mod.rs index 2615c11c..3a97b34a 100644 --- a/crates/forky/forky_bevy/test/mod.rs +++ b/crates/forky/forky_bevy/test/mod.rs @@ -1 +1,2 @@ +#![allow(unused_imports)] pub mod extensions; diff --git a/crates/forky/forky_cli/src/auto_mod/mod.rs b/crates/forky/forky_cli/src/auto_mod/mod.rs index 194c6f46..f14eacc2 100644 --- a/crates/forky/forky_cli/src/auto_mod/mod.rs +++ b/crates/forky/forky_cli/src/auto_mod/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod command; pub use self::command::*; pub mod run; diff --git a/crates/forky/forky_cli/src/common/mod.rs b/crates/forky/forky_cli/src/common/mod.rs index c6b49d93..2978d585 100644 --- a/crates/forky/forky_cli/src/common/mod.rs +++ b/crates/forky/forky_cli/src/common/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod auto_fs; pub use self::auto_fs::*; pub mod forky_cli; diff --git a/crates/forky/forky_cli/src/server/mod.rs b/crates/forky/forky_cli/src/server/mod.rs index 56be6b8c..1b83c63c 100644 --- a/crates/forky/forky_cli/src/server/mod.rs +++ b/crates/forky/forky_cli/src/server/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod proxy; pub use self::proxy::*; pub mod tls; diff --git a/crates/forky/forky_cli/src/style/mod.rs b/crates/forky/forky_cli/src/style/mod.rs index 5e01da70..7fe30f42 100644 --- a/crates/forky/forky_cli/src/style/mod.rs +++ b/crates/forky/forky_cli/src/style/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod command_all; pub use self::command_all::*; pub mod lightning; diff --git a/crates/forky/forky_cli/src/watch/mod.rs b/crates/forky/forky_cli/src/watch/mod.rs index 194c6f46..f14eacc2 100644 --- a/crates/forky/forky_cli/src/watch/mod.rs +++ b/crates/forky/forky_cli/src/watch/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod command; pub use self::command::*; pub mod run; diff --git a/crates/forky/forky_cli/test/files/mod.rs b/crates/forky/forky_cli/test/files/mod.rs index 90c72ae5..b398e0d0 100644 --- a/crates/forky/forky_cli/test/files/mod.rs +++ b/crates/forky/forky_cli/test/files/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod auto_mod; pub use self::auto_mod::*; pub mod test_dir; diff --git a/crates/forky/forky_cli/test/files/test_dir/__test_sub_dir/mod.rs b/crates/forky/forky_cli/test/files/test_dir/__test_sub_dir/mod.rs index 803a6d8b..eea3a0ba 100644 --- a/crates/forky/forky_cli/test/files/test_dir/__test_sub_dir/mod.rs +++ b/crates/forky/forky_cli/test/files/test_dir/__test_sub_dir/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod test_mod; pub mod _test_use; pub use self::_test_use::*; diff --git a/crates/forky/forky_cli/test/files/test_dir/mod.rs b/crates/forky/forky_cli/test/files/test_dir/mod.rs index fbd06376..96d6dc3d 100644 --- a/crates/forky/forky_cli/test/files/test_dir/mod.rs +++ b/crates/forky/forky_cli/test/files/test_dir/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod test_mod; pub use self::test_mod::*; pub mod __test_sub_dir; diff --git a/crates/forky/forky_cli/test/mod.rs b/crates/forky/forky_cli/test/mod.rs index d3ab9696..522fce8b 100644 --- a/crates/forky/forky_cli/test/mod.rs +++ b/crates/forky/forky_cli/test/mod.rs @@ -1 +1,2 @@ +#![allow(unused_imports)] pub mod files; diff --git a/crates/forky/forky_core/src/extensions/mod.rs b/crates/forky/forky_core/src/extensions/mod.rs index 0f70e3bd..d2089098 100644 --- a/crates/forky/forky_core/src/extensions/mod.rs +++ b/crates/forky/forky_core/src/extensions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod num_x; pub use self::num_x::*; pub mod path_buf; diff --git a/crates/forky/forky_core/src/forky_event/mod.rs b/crates/forky/forky_core/src/forky_event/mod.rs index 578fa854..f39e1d62 100644 --- a/crates/forky/forky_core/src/forky_event/mod.rs +++ b/crates/forky/forky_core/src/forky_event/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod forky_event; pub use self::forky_event::*; diff --git a/crates/forky/forky_core/src/graph/mod.rs b/crates/forky/forky_core/src/graph/mod.rs index 2edf56c5..956b800f 100644 --- a/crates/forky/forky_core/src/graph/mod.rs +++ b/crates/forky/forky_core/src/graph/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod node; pub use self::node::*; diff --git a/crates/forky/forky_core/src/lib.rs b/crates/forky/forky_core/src/lib.rs index bb5dbac5..026b9e6e 100644 --- a/crates/forky/forky_core/src/lib.rs +++ b/crates/forky/forky_core/src/lib.rs @@ -10,7 +10,7 @@ pub mod forky_event; pub use self::forky_event::*; pub use self::utils::*; pub mod macros; -pub use self::macros::macros_inner::*; +// pub use self::macros::*; pub mod net; @@ -19,7 +19,7 @@ pub mod prelude { pub use crate::forky_event::*; pub use crate::graph::*; pub use crate::macros::*; - pub use crate::math::*; + // pub use crate::math::*; // pub use crate::math_f64::*; pub use crate::net::*; pub use crate::utility::*; diff --git a/crates/forky/forky_core/src/macros/macros.rs b/crates/forky/forky_core/src/macros/macros.rs index 5aa549c6..d438be13 100644 --- a/crates/forky/forky_core/src/macros/macros.rs +++ b/crates/forky/forky_core/src/macros/macros.rs @@ -1,29 +1,28 @@ //https://danielkeep.github.io/tlborm/book/pat-repetition-replacement.html /// Container for macros -pub mod macros_inner { - #[macro_export] - macro_rules! replace_expr { - ($_t:tt $sub:expr) => { - $sub - }; - } +#[macro_export] +macro_rules! replace_expr { + ($_t:tt $sub:expr) => { + $sub + }; +} - // #[macro_export] - // macro_rules! fmt { - // ($($x:expr) +) => { - // $(format!("{} ",$x))+ - // }; - // } - // #[macro_export] - // macro_rules! log { - // ($($x:expr) +) => { - // $(print!("{}",$x));+; - // print!("\n"); - // }; - // } - #[macro_export] - macro_rules! log { +// #[macro_export] +// macro_rules! fmt { +// ($($x:expr) +) => { +// $(format!("{} ",$x))+ +// }; +// } +// #[macro_export] +// macro_rules! log { +// ($($x:expr) +) => { +// $(print!("{}",$x));+; +// print!("\n"); +// }; +// } +#[macro_export] +macro_rules! log { ( $( $t:tt )* ) => { #[cfg(not(target_arch = "wasm32"))] println!($( $t )*); @@ -32,27 +31,27 @@ pub mod macros_inner { } } - #[macro_export] - macro_rules! dir { +#[macro_export] +macro_rules! dir { ($($x:expr) +) => { $(print!("{:#?}",$x));+; print!("\n"); }; } - #[macro_export] - macro_rules! tern { - ($pred:expr; $a:expr; $b:expr) => { - if $pred { - $a - } else { - $b - } - }; - } +#[macro_export] +macro_rules! tern { + ($pred:expr; $a:expr; $b:expr) => { + if $pred { + $a + } else { + $b + } + }; +} - #[macro_export] - macro_rules! spacecat { +#[macro_export] +macro_rules! spacecat { // ($single_item:expr) => { // $single_item // }; @@ -64,9 +63,8 @@ pub mod macros_inner { }; } - // macro_rules! fmt { - // ($($x:expr) +) => { - // [$(replace_expr!($x "{}")),+].join("baz") - // }; - // } -} +// macro_rules! fmt { +// ($($x:expr) +) => { +// [$(replace_expr!($x "{}")),+].join("baz") +// }; +// } diff --git a/crates/forky/forky_core/src/macros/mod.rs b/crates/forky/forky_core/src/macros/mod.rs index 703f1d7f..d576562c 100644 --- a/crates/forky/forky_core/src/macros/mod.rs +++ b/crates/forky/forky_core/src/macros/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod macros; pub use self::macros::*; diff --git a/crates/forky/forky_core/src/math/mod.rs b/crates/forky/forky_core/src/math/mod.rs index ff442fbd..07304d33 100644 --- a/crates/forky/forky_core/src/math/mod.rs +++ b/crates/forky/forky_core/src/math/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod funcs; pub use self::funcs::*; pub mod constants; diff --git a/crates/forky/forky_core/src/math_f64/mod.rs b/crates/forky/forky_core/src/math_f64/mod.rs index ff442fbd..07304d33 100644 --- a/crates/forky/forky_core/src/math_f64/mod.rs +++ b/crates/forky/forky_core/src/math_f64/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod funcs; pub use self::funcs::*; pub mod constants; diff --git a/crates/forky/forky_core/src/net/mod.rs b/crates/forky/forky_core/src/net/mod.rs index e412d92c..cedcc24a 100644 --- a/crates/forky/forky_core/src/net/mod.rs +++ b/crates/forky/forky_core/src/net/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod url; pub use self::url::*; diff --git a/crates/forky/forky_core/src/style/mod.rs b/crates/forky/forky_core/src/style/mod.rs index e69de29b..9fb8bc30 100644 --- a/crates/forky/forky_core/src/style/mod.rs +++ b/crates/forky/forky_core/src/style/mod.rs @@ -0,0 +1 @@ +#![allow(unused_imports)] diff --git a/crates/forky/forky_core/src/utility/mod.rs b/crates/forky/forky_core/src/utility/mod.rs index b4efafc4..000b0f0f 100644 --- a/crates/forky/forky_core/src/utility/mod.rs +++ b/crates/forky/forky_core/src/utility/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod random; pub use self::random::*; pub mod time; diff --git a/crates/forky/forky_core/src/utils/mod.rs b/crates/forky/forky_core/src/utils/mod.rs index d5f2a845..07ee50ab 100644 --- a/crates/forky/forky_core/src/utils/mod.rs +++ b/crates/forky/forky_core/src/utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod drop_utils; pub use self::drop_utils::*; pub mod async_utils; diff --git a/crates/forky/forky_core/test/extensions/mod.rs b/crates/forky/forky_core/test/extensions/mod.rs index 7fd2a585..4d97351d 100644 --- a/crates/forky/forky_core/test/extensions/mod.rs +++ b/crates/forky/forky_core/test/extensions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod vec; pub use self::vec::*; pub mod str_x; diff --git a/crates/forky/forky_core/test/forky_event/mod.rs b/crates/forky/forky_core/test/forky_event/mod.rs index 578fa854..f39e1d62 100644 --- a/crates/forky/forky_core/test/forky_event/mod.rs +++ b/crates/forky/forky_core/test/forky_event/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod forky_event; pub use self::forky_event::*; diff --git a/crates/forky/forky_core/test/graph/mod.rs b/crates/forky/forky_core/test/graph/mod.rs index 4bab68a4..f19a8b6c 100644 --- a/crates/forky/forky_core/test/graph/mod.rs +++ b/crates/forky/forky_core/test/graph/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod graph; pub use self::graph::*; diff --git a/crates/forky/forky_core/test/math/mod.rs b/crates/forky/forky_core/test/math/mod.rs index 1b259013..6c85b12a 100644 --- a/crates/forky/forky_core/test/math/mod.rs +++ b/crates/forky/forky_core/test/math/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod constants; pub use self::constants::*; diff --git a/crates/forky/forky_core/test/misc/mod.rs b/crates/forky/forky_core/test/misc/mod.rs index 703f1d7f..d576562c 100644 --- a/crates/forky/forky_core/test/misc/mod.rs +++ b/crates/forky/forky_core/test/misc/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod macros; pub use self::macros::*; diff --git a/crates/forky/forky_core/test/mod.rs b/crates/forky/forky_core/test/mod.rs index caafcdc0..0b5c18d1 100644 --- a/crates/forky/forky_core/test/mod.rs +++ b/crates/forky/forky_core/test/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod graph; pub mod misc; pub mod pointers; diff --git a/crates/forky/forky_core/test/pointers/mod.rs b/crates/forky/forky_core/test/pointers/mod.rs index f434d35a..98dde5e8 100644 --- a/crates/forky/forky_core/test/pointers/mod.rs +++ b/crates/forky/forky_core/test/pointers/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod threads; pub use self::threads::*; diff --git a/crates/forky/forky_esp/src/__extensions/mod.rs b/crates/forky/forky_esp/src/__extensions/mod.rs index 9d3d8988..f123fd76 100644 --- a/crates/forky/forky_esp/src/__extensions/mod.rs +++ b/crates/forky/forky_esp/src/__extensions/mod.rs @@ -1 +1,2 @@ +#![allow(unused_imports)] pub mod rgb; diff --git a/crates/forky/forky_esp/src/_core/mod.rs b/crates/forky/forky_esp/src/_core/mod.rs index b6ed6b2d..5965406a 100644 --- a/crates/forky/forky_esp/src/_core/mod.rs +++ b/crates/forky/forky_esp/src/_core/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod _timer; pub mod _smart_leds_adapter_rgbw; pub mod _esp_device; diff --git a/crates/forky/forky_esp/src/entry/mod.rs b/crates/forky/forky_esp/src/entry/mod.rs index bffdfcfb..3a479d5e 100644 --- a/crates/forky/forky_esp/src/entry/mod.rs +++ b/crates/forky/forky_esp/src/entry/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod hello_led; pub use self::hello_led::*; pub mod hello_world; diff --git a/crates/forky/forky_fs/src/cli/mod.rs b/crates/forky/forky_fs/src/cli/mod.rs index fedb1678..b313ae42 100644 --- a/crates/forky/forky_fs/src/cli/mod.rs +++ b/crates/forky/forky_fs/src/cli/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod fs_watcher; pub use self::fs_watcher::*; pub mod subcommand; diff --git a/crates/forky/forky_fs/src/utility/cli_args/mod.rs b/crates/forky/forky_fs/src/utility/cli_args/mod.rs index e3aa27f7..c8694662 100644 --- a/crates/forky/forky_fs/src/utility/cli_args/mod.rs +++ b/crates/forky/forky_fs/src/utility/cli_args/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod misc; pub use self::misc::*; diff --git a/crates/forky/forky_fs/src/utility/fs/macros.rs b/crates/forky/forky_fs/src/utility/fs/macros.rs index f2cfbd4a..2990a300 100644 --- a/crates/forky/forky_fs/src/utility/fs/macros.rs +++ b/crates/forky/forky_fs/src/utility/fs/macros.rs @@ -1,17 +1,15 @@ -pub mod macros_inner { - #[macro_export] - macro_rules! file_abs { - () => { - std::path::Path::new(env!("CARGO_MANIFEST_DIR").join(file!())) - }; - } +#[macro_export] +macro_rules! file_abs { + () => { + std::path::Path::new(env!("CARGO_MANIFEST_DIR").join(file!())) + }; +} - #[macro_export] - macro_rules! file_abs_workspace { - () => { - std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join( - forky_core::PathBufExt::pop_first_two_path_components(file!()), - ) - }; - } +#[macro_export] +macro_rules! file_abs_workspace { + () => { + std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join( + forky_core::PathBufExt::pop_first_two_path_components(file!()), + ) + }; } diff --git a/crates/forky/forky_fs/src/utility/fs/mod.rs b/crates/forky/forky_fs/src/utility/fs/mod.rs index 3ac5c3ef..4ebf5dd0 100644 --- a/crates/forky/forky_fs/src/utility/fs/mod.rs +++ b/crates/forky/forky_fs/src/utility/fs/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod file; pub use self::file::*; pub mod dir; diff --git a/crates/forky/forky_fs/src/utility/mod.rs b/crates/forky/forky_fs/src/utility/mod.rs index 9822b612..b9666fdd 100644 --- a/crates/forky/forky_fs/src/utility/mod.rs +++ b/crates/forky/forky_fs/src/utility/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod terminal; pub mod fs; pub mod process; diff --git a/crates/forky/forky_fs/src/utility/process/mod.rs b/crates/forky/forky_fs/src/utility/process/mod.rs index cb9da28e..ad4e672f 100644 --- a/crates/forky/forky_fs/src/utility/process/mod.rs +++ b/crates/forky/forky_fs/src/utility/process/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod child_x; pub use self::child_x::*; pub mod command; diff --git a/crates/forky/forky_fs/src/utility/terminal/mod.rs b/crates/forky/forky_fs/src/utility/terminal/mod.rs index e5ae171c..72e8685a 100644 --- a/crates/forky/forky_fs/src/utility/terminal/mod.rs +++ b/crates/forky/forky_fs/src/utility/terminal/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod misc; pub use self::misc::*; pub mod redirect_io; diff --git a/crates/forky/forky_fs/test/mod.rs b/crates/forky/forky_fs/test/mod.rs index 6ba3528f..52542bd5 100644 --- a/crates/forky/forky_fs/test/mod.rs +++ b/crates/forky/forky_fs/test/mod.rs @@ -1 +1,2 @@ +#![allow(unused_imports)] pub mod utility; diff --git a/crates/forky/forky_fs/test/utility/mod.rs b/crates/forky/forky_fs/test/utility/mod.rs index 3a308cae..1b13259c 100644 --- a/crates/forky/forky_fs/test/utility/mod.rs +++ b/crates/forky/forky_fs/test/utility/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod project_root; pub use self::project_root::*; diff --git a/crates/forky/forky_play/src/animation/mod.rs b/crates/forky/forky_play/src/animation/mod.rs index 5afc0e85..3ae58931 100644 --- a/crates/forky/forky_play/src/animation/mod.rs +++ b/crates/forky/forky_play/src/animation/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod pose_lerp; pub use self::pose_lerp::*; diff --git a/crates/forky/forky_play/src/base/mod.rs b/crates/forky/forky_play/src/base/mod.rs index cee103cb..10a2fd1b 100644 --- a/crates/forky/forky_play/src/base/mod.rs +++ b/crates/forky/forky_play/src/base/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod camera; pub use self::camera::*; pub mod scene; diff --git a/crates/forky/forky_play/src/bevy_app_utils/mod.rs b/crates/forky/forky_play/src/bevy_app_utils/mod.rs index e69de29b..9fb8bc30 100644 --- a/crates/forky/forky_play/src/bevy_app_utils/mod.rs +++ b/crates/forky/forky_play/src/bevy_app_utils/mod.rs @@ -0,0 +1 @@ +#![allow(unused_imports)] diff --git a/crates/forky/forky_play/src/camera/mod.rs b/crates/forky/forky_play/src/camera/mod.rs index b782216e..5780e9f2 100644 --- a/crates/forky/forky_play/src/camera/mod.rs +++ b/crates/forky/forky_play/src/camera/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod fly_camera_bundle; pub use self::fly_camera_bundle::*; pub mod fps_camera_bundle; diff --git a/crates/forky/forky_play/src/common/mod.rs b/crates/forky/forky_play/src/common/mod.rs index b0706d7d..d2618fc7 100644 --- a/crates/forky/forky_play/src/common/mod.rs +++ b/crates/forky/forky_play/src/common/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod id_hashmap; pub use self::id_hashmap::*; pub mod tag_components; diff --git a/crates/forky/forky_play/src/debug/mod.rs b/crates/forky/forky_play/src/debug/mod.rs index 0986e17d..65074f49 100644 --- a/crates/forky/forky_play/src/debug/mod.rs +++ b/crates/forky/forky_play/src/debug/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod grid; pub use self::grid::*; pub mod gizmos; diff --git a/crates/forky/forky_play/src/extensions/mod.rs b/crates/forky/forky_play/src/extensions/mod.rs index 514fab57..ebcd2ec3 100644 --- a/crates/forky/forky_play/src/extensions/mod.rs +++ b/crates/forky/forky_play/src/extensions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod color; pub use self::color::*; pub mod bundle; diff --git a/crates/forky/forky_play/src/geometry__/bezier/mod.rs b/crates/forky/forky_play/src/geometry__/bezier/mod.rs index 7a071eba..cfddb2fb 100644 --- a/crates/forky/forky_play/src/geometry__/bezier/mod.rs +++ b/crates/forky/forky_play/src/geometry__/bezier/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod cubic; pub use self::cubic::*; pub mod quadratic; diff --git a/crates/forky/forky_play/src/geometry__/bezier2/mod.rs b/crates/forky/forky_play/src/geometry__/bezier2/mod.rs index 7a071eba..cfddb2fb 100644 --- a/crates/forky/forky_play/src/geometry__/bezier2/mod.rs +++ b/crates/forky/forky_play/src/geometry__/bezier2/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod cubic; pub use self::cubic::*; pub mod quadratic; diff --git a/crates/forky/forky_play/src/geometry__/bezier3/mod.rs b/crates/forky/forky_play/src/geometry__/bezier3/mod.rs index 7a071eba..cfddb2fb 100644 --- a/crates/forky/forky_play/src/geometry__/bezier3/mod.rs +++ b/crates/forky/forky_play/src/geometry__/bezier3/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod cubic; pub use self::cubic::*; pub mod quadratic; diff --git a/crates/forky/forky_play/src/geometry__/mod.rs b/crates/forky/forky_play/src/geometry__/mod.rs index 4a6bfe27..c7995687 100644 --- a/crates/forky/forky_play/src/geometry__/mod.rs +++ b/crates/forky/forky_play/src/geometry__/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod bezier3; pub mod bezier; pub mod bezier2; diff --git a/crates/forky/forky_play/src/input/mod.rs b/crates/forky/forky_play/src/input/mod.rs index 8dbc9b2c..c3edca60 100644 --- a/crates/forky/forky_play/src/input/mod.rs +++ b/crates/forky/forky_play/src/input/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod keyboard_controller; pub use self::keyboard_controller::*; pub mod transform_controller; diff --git a/crates/forky/forky_play/src/materials/mod.rs b/crates/forky/forky_play/src/materials/mod.rs index 4ee1b43e..07d3bafb 100644 --- a/crates/forky/forky_play/src/materials/mod.rs +++ b/crates/forky/forky_play/src/materials/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod forky_shader; pub use self::forky_shader::*; pub mod uv_material; diff --git a/crates/forky/forky_play/src/maze/__spawners/mod.rs b/crates/forky/forky_play/src/maze/__spawners/mod.rs index a1ef83b9..e5d6b765 100644 --- a/crates/forky/forky_play/src/maze/__spawners/mod.rs +++ b/crates/forky/forky_play/src/maze/__spawners/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod board; pub mod ball; pub mod ui; diff --git a/crates/forky/forky_play/src/maze/_solvers/mod.rs b/crates/forky/forky_play/src/maze/_solvers/mod.rs index 8724d04a..8b5b5424 100644 --- a/crates/forky/forky_play/src/maze/_solvers/mod.rs +++ b/crates/forky/forky_play/src/maze/_solvers/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod depth_first_backtrack; pub use self::depth_first_backtrack::*; diff --git a/crates/forky/forky_play/src/maze/_utility/char_shape/mod.rs b/crates/forky/forky_play/src/maze/_utility/char_shape/mod.rs index e3aa27f7..c8694662 100644 --- a/crates/forky/forky_play/src/maze/_utility/char_shape/mod.rs +++ b/crates/forky/forky_play/src/maze/_utility/char_shape/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod misc; pub use self::misc::*; diff --git a/crates/forky/forky_play/src/maze/_utility/mod.rs b/crates/forky/forky_play/src/maze/_utility/mod.rs index e483316d..63e9481a 100644 --- a/crates/forky/forky_play/src/maze/_utility/mod.rs +++ b/crates/forky/forky_play/src/maze/_utility/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod maze; pub use self::maze::*; pub mod u8_shape; diff --git a/crates/forky/forky_play/src/maze/_utility/u8_shape/mod.rs b/crates/forky/forky_play/src/maze/_utility/u8_shape/mod.rs index e3aa27f7..c8694662 100644 --- a/crates/forky/forky_play/src/maze/_utility/u8_shape/mod.rs +++ b/crates/forky/forky_play/src/maze/_utility/u8_shape/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod misc; pub use self::misc::*; diff --git a/crates/forky/forky_play/src/maze/board_joint/mod.rs b/crates/forky/forky_play/src/maze/board_joint/mod.rs index 7bf6d679..67cbd3a2 100644 --- a/crates/forky/forky_play/src/maze/board_joint/mod.rs +++ b/crates/forky/forky_play/src/maze/board_joint/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod force_spawn; pub use self::force_spawn::*; pub mod motor_spawn; diff --git a/crates/forky/forky_play/src/maze/mod.rs b/crates/forky/forky_play/src/maze/mod.rs index f5aee23a..40ba0761 100644 --- a/crates/forky/forky_play/src/maze/mod.rs +++ b/crates/forky/forky_play/src/maze/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod _solvers; pub use self::_solvers::*; pub mod board_joint; diff --git a/crates/forky/forky_play/src/maze/rect_maze/mod.rs b/crates/forky/forky_play/src/maze/rect_maze/mod.rs index 2f0d825e..ee87b1d7 100644 --- a/crates/forky/forky_play/src/maze/rect_maze/mod.rs +++ b/crates/forky/forky_play/src/maze/rect_maze/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod rect_maze; pub use self::rect_maze::*; pub mod rect_maze_spatial; diff --git a/crates/forky/forky_play/src/maze/systems/mod.rs b/crates/forky/forky_play/src/maze/systems/mod.rs index 19f9a30f..2c126b50 100644 --- a/crates/forky/forky_play/src/maze/systems/mod.rs +++ b/crates/forky/forky_play/src/maze/systems/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod game; pub use self::game::*; pub mod camera; diff --git a/crates/forky/forky_play/src/mesh_utils/mod.rs b/crates/forky/forky_play/src/mesh_utils/mod.rs index c48ae71d..dfbc8d5d 100644 --- a/crates/forky/forky_play/src/mesh_utils/mod.rs +++ b/crates/forky/forky_play/src/mesh_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod kaleid; pub use self::kaleid::*; pub mod mesh_factory; diff --git a/crates/forky/forky_play/src/mithril/mod.rs b/crates/forky/forky_play/src/mithril/mod.rs index 0c4629d1..8da787ca 100644 --- a/crates/forky/forky_play/src/mithril/mod.rs +++ b/crates/forky/forky_play/src/mithril/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod cart_settings; pub use self::cart_settings::*; pub mod spawn_graph; diff --git a/crates/forky/forky_play/src/physics/mod.rs b/crates/forky/forky_play/src/physics/mod.rs index db738411..2e6aa5f0 100644 --- a/crates/forky/forky_play/src/physics/mod.rs +++ b/crates/forky/forky_play/src/physics/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod slerp_joint; pub use self::slerp_joint::*; pub mod kinematic_body; diff --git a/crates/forky/forky_play/src/plugins/mod.rs b/crates/forky/forky_play/src/plugins/mod.rs index 98e688f0..ae4b51b2 100644 --- a/crates/forky/forky_play/src/plugins/mod.rs +++ b/crates/forky/forky_play/src/plugins/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod forky_debug_plugin; pub use self::forky_debug_plugin::*; pub mod forky_full_plugin; diff --git a/crates/forky/forky_play/src/render_graph/mod.rs b/crates/forky/forky_play/src/render_graph/mod.rs index cc96fe3c..5803715f 100644 --- a/crates/forky/forky_play/src/render_graph/mod.rs +++ b/crates/forky/forky_play/src/render_graph/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod clear_color; pub use self::clear_color::*; pub mod blit_graph_plugin; diff --git a/crates/forky/forky_play/src/spline/_solvers/mod.rs b/crates/forky/forky_play/src/spline/_solvers/mod.rs index 9907160a..8e1ad658 100644 --- a/crates/forky/forky_play/src/spline/_solvers/mod.rs +++ b/crates/forky/forky_play/src/spline/_solvers/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod catmull_rom; pub use self::catmull_rom::*; diff --git a/crates/forky/forky_play/src/spline/_spline/mod.rs b/crates/forky/forky_play/src/spline/_spline/mod.rs index f8d31181..cdd27144 100644 --- a/crates/forky/forky_play/src/spline/_spline/mod.rs +++ b/crates/forky/forky_play/src/spline/_spline/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod linear_spline; pub use self::linear_spline::*; pub mod cubic_spline; diff --git a/crates/forky/forky_play/src/spline/ecs_graph/_systems/mod.rs b/crates/forky/forky_play/src/spline/ecs_graph/_systems/mod.rs index caecac8c..6d5e8dc0 100644 --- a/crates/forky/forky_play/src/spline/ecs_graph/_systems/mod.rs +++ b/crates/forky/forky_play/src/spline/ecs_graph/_systems/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod on_edge_modified; pub use self::on_edge_modified::*; pub mod on_node_moved; diff --git a/crates/forky/forky_play/src/spline/ecs_graph/mod.rs b/crates/forky/forky_play/src/spline/ecs_graph/mod.rs index a43e25ed..c0eaaa08 100644 --- a/crates/forky/forky_play/src/spline/ecs_graph/mod.rs +++ b/crates/forky/forky_play/src/spline/ecs_graph/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod ecs_spline_graph_plugin; pub use self::ecs_spline_graph_plugin::*; pub mod ecs_spline_graph; diff --git a/crates/forky/forky_play/src/spline/graph/mod.rs b/crates/forky/forky_play/src/spline/graph/mod.rs index d6ccc5f8..84b13115 100644 --- a/crates/forky/forky_play/src/spline/graph/mod.rs +++ b/crates/forky/forky_play/src/spline/graph/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod spline_edge; pub use self::spline_edge::*; pub mod spline_graph_lookup; diff --git a/crates/forky/forky_play/src/spline/mesh/mod.rs b/crates/forky/forky_play/src/spline/mesh/mod.rs index 7fb41d7e..996cc005 100644 --- a/crates/forky/forky_play/src/spline/mesh/mod.rs +++ b/crates/forky/forky_play/src/spline/mesh/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod triangles; pub use self::triangles::*; pub mod edge_loop; diff --git a/crates/forky/forky_play/src/spline/mod.rs b/crates/forky/forky_play/src/spline/mod.rs index e5def5b3..67001ad3 100644 --- a/crates/forky/forky_play/src/spline/mod.rs +++ b/crates/forky/forky_play/src/spline/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod _solvers; pub use self::_solvers::*; pub mod graph; diff --git a/crates/forky/forky_play/src/spline/physics/mod.rs b/crates/forky/forky_play/src/spline/physics/mod.rs index bcbf67b5..9beb465b 100644 --- a/crates/forky/forky_play/src/spline/physics/mod.rs +++ b/crates/forky/forky_play/src/spline/physics/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod spline_physics_bundle; pub use self::spline_physics_bundle::*; pub mod components; diff --git a/crates/forky/forky_play/src/spline/tool/mod.rs b/crates/forky/forky_play/src/spline/tool/mod.rs index 91220a99..bb1c76f6 100644 --- a/crates/forky/forky_play/src/spline/tool/mod.rs +++ b/crates/forky/forky_play/src/spline/tool/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod link_spline_nodes; pub use self::link_spline_nodes::*; pub mod spline_tool_plugin; diff --git a/crates/forky/forky_play/src/spline/utils/mod.rs b/crates/forky/forky_play/src/spline/utils/mod.rs index 36621064..8263ce80 100644 --- a/crates/forky/forky_play/src/spline/utils/mod.rs +++ b/crates/forky/forky_play/src/spline/utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod spawn_utils; pub use self::spawn_utils::*; pub mod debug_utils; diff --git a/crates/forky/forky_play/src/tool/_prepare_systems/mod.rs b/crates/forky/forky_play/src/tool/_prepare_systems/mod.rs index a89528ad..0ef1a3a2 100644 --- a/crates/forky/forky_play/src/tool/_prepare_systems/mod.rs +++ b/crates/forky/forky_play/src/tool/_prepare_systems/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod cast_camera_ray; pub use self::cast_camera_ray::*; pub mod select; diff --git a/crates/forky/forky_play/src/tool/_tool_systems/mod.rs b/crates/forky/forky_play/src/tool/_tool_systems/mod.rs index b7632205..d0a8647a 100644 --- a/crates/forky/forky_play/src/tool/_tool_systems/mod.rs +++ b/crates/forky/forky_play/src/tool/_tool_systems/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod append_interactable_mesh; pub use self::append_interactable_mesh::*; pub mod move_selected_interactables; diff --git a/crates/forky/forky_play/src/tool/mod.rs b/crates/forky/forky_play/src/tool/mod.rs index 7bc20968..27cc871d 100644 --- a/crates/forky/forky_play/src/tool/mod.rs +++ b/crates/forky/forky_play/src/tool/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod tool_plugin; pub use self::tool_plugin::*; pub mod _tool_systems; diff --git a/crates/forky/forky_play/src/utility/mod.rs b/crates/forky/forky_play/src/utility/mod.rs index 5b3b7b32..01c80773 100644 --- a/crates/forky/forky_play/src/utility/mod.rs +++ b/crates/forky/forky_play/src/utility/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod keycode; pub use self::keycode::*; pub mod svg_graph; diff --git a/crates/forky/forky_play/test/extensions/mod.rs b/crates/forky/forky_play/test/extensions/mod.rs index 86a4933a..f5b4d486 100644 --- a/crates/forky/forky_play/test/extensions/mod.rs +++ b/crates/forky/forky_play/test/extensions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod app; pub use self::app::*; pub mod quat; diff --git a/crates/forky/forky_play/test/geometry/mod.rs b/crates/forky/forky_play/test/geometry/mod.rs index e49e1d3e..523e29cc 100644 --- a/crates/forky/forky_play/test/geometry/mod.rs +++ b/crates/forky/forky_play/test/geometry/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod bezier; pub use self::bezier::*; pub mod bezier_render; diff --git a/crates/forky/forky_play/test/maze/mod.rs b/crates/forky/forky_play/test/maze/mod.rs index 6f168458..bbeacf9e 100644 --- a/crates/forky/forky_play/test/maze/mod.rs +++ b/crates/forky/forky_play/test/maze/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod ball; pub use self::ball::*; pub mod depth_first_backtrace; diff --git a/crates/forky/forky_play/test/misc/mod.rs b/crates/forky/forky_play/test/misc/mod.rs index 2714290f..cf5c8090 100644 --- a/crates/forky/forky_play/test/misc/mod.rs +++ b/crates/forky/forky_play/test/misc/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod boid; pub use self::boid::*; pub mod utility; diff --git a/crates/forky/forky_play/test/mod.rs b/crates/forky/forky_play/test/mod.rs index c54239a1..e5036327 100644 --- a/crates/forky/forky_play/test/mod.rs +++ b/crates/forky/forky_play/test/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod misc; pub mod maze; pub mod physics; diff --git a/crates/forky/forky_play/test/physics/mod.rs b/crates/forky/forky_play/test/physics/mod.rs index c89ac488..67c73a4e 100644 --- a/crates/forky/forky_play/test/physics/mod.rs +++ b/crates/forky/forky_play/test/physics/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod slerp_joint; pub use self::slerp_joint::*; pub mod euler_physics; diff --git a/crates/forky/forky_play/test/spline/mod.rs b/crates/forky/forky_play/test/spline/mod.rs index 89fa627a..8784b5a1 100644 --- a/crates/forky/forky_play/test/spline/mod.rs +++ b/crates/forky/forky_play/test/spline/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod catmull_rom; pub use self::catmull_rom::*; pub mod spline_physics; diff --git a/crates/forky/forky_web/src/dom_utils/mod.rs b/crates/forky/forky_web/src/dom_utils/mod.rs index b702d0bf..25eccb4e 100644 --- a/crates/forky/forky_web/src/dom_utils/mod.rs +++ b/crates/forky/forky_web/src/dom_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod resizable_canvas; pub use self::resizable_canvas::*; pub mod file; diff --git a/crates/forky/forky_web/src/extensions/mod.rs b/crates/forky/forky_web/src/extensions/mod.rs index e0b368c3..935ff3eb 100644 --- a/crates/forky/forky_web/src/extensions/mod.rs +++ b/crates/forky/forky_web/src/extensions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod response; pub use self::response::*; pub mod element; diff --git a/crates/forky/forky_web/src/logging/mod.rs b/crates/forky/forky_web/src/logging/mod.rs index b56eaafd..9d63b0ba 100644 --- a/crates/forky/forky_web/src/logging/mod.rs +++ b/crates/forky/forky_web/src/logging/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod set_panic_hook; pub use self::set_panic_hook::*; pub mod replace_func; diff --git a/crates/forky/forky_web/src/net/mod.rs b/crates/forky/forky_web/src/net/mod.rs index 2e008388..3ab6ab74 100644 --- a/crates/forky/forky_web/src/net/mod.rs +++ b/crates/forky/forky_web/src/net/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod fetch; pub use self::fetch::*; diff --git a/crates/forky/forky_web/src/ui/mod.rs b/crates/forky/forky_web/src/ui/mod.rs index d23daeb0..33c0f587 100644 --- a/crates/forky/forky_web/src/ui/mod.rs +++ b/crates/forky/forky_web/src/ui/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod ui_style_g; pub use self::ui_style_g::*; pub mod button; diff --git a/crates/forky/forky_web/test/mod.rs b/crates/forky/forky_web/test/mod.rs index c64936e3..07db000d 100644 --- a/crates/forky/forky_web/test/mod.rs +++ b/crates/forky/forky_web/test/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod ui; pub mod sweet_wasm; pub use self::sweet_wasm::*; diff --git a/crates/forky/forky_web/test/net/mod.rs b/crates/forky/forky_web/test/net/mod.rs index 2e008388..3ab6ab74 100644 --- a/crates/forky/forky_web/test/net/mod.rs +++ b/crates/forky/forky_web/test/net/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod fetch; pub use self::fetch::*; diff --git a/crates/forky/forky_web/test/ui/mod.rs b/crates/forky/forky_web/test/ui/mod.rs index fa4de976..9ee4105a 100644 --- a/crates/forky/forky_web/test/ui/mod.rs +++ b/crates/forky/forky_web/test/ui/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod document; pub use self::document::*; pub mod button; diff --git a/crates/forky/forky_xr/test/mod.rs b/crates/forky/forky_xr/test/mod.rs index e69de29b..9fb8bc30 100644 --- a/crates/forky/forky_xr/test/mod.rs +++ b/crates/forky/forky_xr/test/mod.rs @@ -0,0 +1 @@ +#![allow(unused_imports)] diff --git a/crates/gamai/macros/src/action/mod.rs b/crates/gamai/macros/src/action/mod.rs index 4a316c36..ba5f39c9 100644 --- a/crates/gamai/macros/src/action/mod.rs +++ b/crates/gamai/macros/src/action/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod parse_action; pub use self::parse_action::*; diff --git a/crates/gamai/macros/src/utils/mod.rs b/crates/gamai/macros/src/utils/mod.rs index da444ba6..dc103a90 100644 --- a/crates/gamai/macros/src/utils/mod.rs +++ b/crates/gamai/macros/src/utils/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod attribute_args; pub use self::attribute_args::*; diff --git a/crates/gamai/src/action/mod.rs b/crates/gamai/src/action/mod.rs index 9b195fd1..425475df 100644 --- a/crates/gamai/src/action/mod.rs +++ b/crates/gamai/src/action/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod entity_graph; pub use self::entity_graph::*; pub mod action_list; diff --git a/crates/gamai/src/builtin_nodes/actions/mod.rs b/crates/gamai/src/builtin_nodes/actions/mod.rs index 7f4b6d2a..db8a23ce 100644 --- a/crates/gamai/src/builtin_nodes/actions/mod.rs +++ b/crates/gamai/src/builtin_nodes/actions/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod scorers; pub use self::scorers::*; pub mod simple_actions; diff --git a/crates/gamai/src/builtin_nodes/mod.rs b/crates/gamai/src/builtin_nodes/mod.rs index 437c5db2..646eacac 100644 --- a/crates/gamai/src/builtin_nodes/mod.rs +++ b/crates/gamai/src/builtin_nodes/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod selectors; pub mod actions; pub mod builtin_nodes; diff --git a/crates/gamai/src/builtin_nodes/selectors/mod.rs b/crates/gamai/src/builtin_nodes/selectors/mod.rs index 09b6ca94..1aab3c72 100644 --- a/crates/gamai/src/builtin_nodes/selectors/mod.rs +++ b/crates/gamai/src/builtin_nodes/selectors/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod fallback_selector; pub use self::fallback_selector::*; pub mod sequence_selector; diff --git a/crates/gamai/src/edge/mod.rs b/crates/gamai/src/edge/mod.rs index 5b60aaae..2b008bf7 100644 --- a/crates/gamai/src/edge/mod.rs +++ b/crates/gamai/src/edge/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod edges; pub use self::edges::*; diff --git a/crates/gamai/src/extensions/mod.rs b/crates/gamai/src/extensions/mod.rs index 512223c5..11bb094f 100644 --- a/crates/gamai/src/extensions/mod.rs +++ b/crates/gamai/src/extensions/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod world_or_commands; pub use self::world_or_commands::*; diff --git a/crates/gamai/src/graph_utils/mod.rs b/crates/gamai/src/graph_utils/mod.rs index 6ce34038..fefe4f4c 100644 --- a/crates/gamai/src/graph_utils/mod.rs +++ b/crates/gamai/src/graph_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod tree; pub use self::tree::*; pub mod graph_ext; diff --git a/crates/gamai/src/node/mod.rs b/crates/gamai/src/node/mod.rs index 437b38e8..b6f67d52 100644 --- a/crates/gamai/src/node/mod.rs +++ b/crates/gamai/src/node/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod interrupt; pub use self::interrupt::*; pub mod run_timer; diff --git a/crates/gamai/src/prop/mod.rs b/crates/gamai/src/prop/mod.rs index 14ecb571..903f0882 100644 --- a/crates/gamai/src/prop/mod.rs +++ b/crates/gamai/src/prop/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod prop; pub use self::prop::*; diff --git a/crates/gamai/test/action/mod.rs b/crates/gamai/test/action/mod.rs index 2887abbf..270216c7 100644 --- a/crates/gamai/test/action/mod.rs +++ b/crates/gamai/test/action/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod serde; pub use self::serde::*; pub mod action_list; diff --git a/crates/gamai/test/edge/mod.rs b/crates/gamai/test/edge/mod.rs index 5b60aaae..2b008bf7 100644 --- a/crates/gamai/test/edge/mod.rs +++ b/crates/gamai/test/edge/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod edges; pub use self::edges::*; diff --git a/crates/gamai/test/mod.rs b/crates/gamai/test/mod.rs index 75a552ba..5972e779 100644 --- a/crates/gamai/test/mod.rs +++ b/crates/gamai/test/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod selectors; pub mod edge; pub mod utils; diff --git a/crates/gamai/test/node/mod.rs b/crates/gamai/test/node/mod.rs index 4663e258..c8e6d14c 100644 --- a/crates/gamai/test/node/mod.rs +++ b/crates/gamai/test/node/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod variants; pub use self::variants::*; pub mod interrupt; diff --git a/crates/gamai/test/selectors/mod.rs b/crates/gamai/test/selectors/mod.rs index fbc534c1..b348ba57 100644 --- a/crates/gamai/test/selectors/mod.rs +++ b/crates/gamai/test/selectors/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod fallback_selector; pub use self::fallback_selector::*; pub mod sequence_selector; diff --git a/crates/gamai/test/utils/mod.rs b/crates/gamai/test/utils/mod.rs index 58e95b6f..358e6b14 100644 --- a/crates/gamai/test/utils/mod.rs +++ b/crates/gamai/test/utils/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod expect_tree; pub use self::expect_tree::*; diff --git a/crates/sweet/macros/src/macros/mod.rs b/crates/sweet/macros/src/macros/mod.rs index 5d85f74c..85d3bbeb 100644 --- a/crates/sweet/macros/src/macros/mod.rs +++ b/crates/sweet/macros/src/macros/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod parse_utils; pub use self::parse_utils::*; pub mod test_case_flags; diff --git a/crates/sweet/src/bevy_core_matchers/mod.rs b/crates/sweet/src/bevy_core_matchers/mod.rs index 212ff9d3..d68c8c2f 100644 --- a/crates/sweet/src/bevy_core_matchers/mod.rs +++ b/crates/sweet/src/bevy_core_matchers/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod world; pub use self::world::*; pub mod core_world_x; diff --git a/crates/sweet/src/bevy_matchers/mod.rs b/crates/sweet/src/bevy_matchers/mod.rs index eb9daca2..550fc653 100644 --- a/crates/sweet/src/bevy_matchers/mod.rs +++ b/crates/sweet/src/bevy_matchers/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod vec3; pub use self::vec3::*; pub mod bevy_app_x; diff --git a/crates/sweet/src/common/mod.rs b/crates/sweet/src/common/mod.rs index 56da672b..b95d6200 100644 --- a/crates/sweet/src/common/mod.rs +++ b/crates/sweet/src/common/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod expect; pub use self::expect::*; diff --git a/crates/sweet/src/matchers/mod.rs b/crates/sweet/src/matchers/mod.rs index b5d3024f..2b4801cd 100644 --- a/crates/sweet/src/matchers/mod.rs +++ b/crates/sweet/src/matchers/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod matcher_close; pub use self::matcher_close::*; pub mod matcher; diff --git a/crates/sweet/src/native/mod.rs b/crates/sweet/src/native/mod.rs index 2ec2506b..38e83239 100644 --- a/crates/sweet/src/native/mod.rs +++ b/crates/sweet/src/native/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod suite_logger_native_parallel; pub use self::suite_logger_native_parallel::*; pub mod suite_logger_native; diff --git a/crates/sweet/src/test_case/mod.rs b/crates/sweet/src/test_case/mod.rs index dd58d8ae..0e4b9e2b 100644 --- a/crates/sweet/src/test_case/mod.rs +++ b/crates/sweet/src/test_case/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod test_case; pub use self::test_case::*; pub mod backtrace_file; diff --git a/crates/sweet/src/test_runner/mod.rs b/crates/sweet/src/test_runner/mod.rs index 7a86926e..b17de659 100644 --- a/crates/sweet/src/test_runner/mod.rs +++ b/crates/sweet/src/test_runner/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod test_runner_result; pub use self::test_runner_result::*; pub mod test_collector; diff --git a/crates/sweet/src/test_suite/mod.rs b/crates/sweet/src/test_suite/mod.rs index 7bf40d24..5910242a 100644 --- a/crates/sweet/src/test_suite/mod.rs +++ b/crates/sweet/src/test_suite/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod suite_result; pub use self::suite_result::*; pub mod suite_logger_default; diff --git a/crates/sweet/src/wasm/_matchers/mod.rs b/crates/sweet/src/wasm/_matchers/mod.rs index 05cc7227..3302ee75 100644 --- a/crates/sweet/src/wasm/_matchers/mod.rs +++ b/crates/sweet/src/wasm/_matchers/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod matcher_async; pub use self::matcher_async::*; pub mod matcher_el; diff --git a/crates/sweet/src/wasm/_runner/mod.rs b/crates/sweet/src/wasm/_runner/mod.rs index cc6b6def..36837f3a 100644 --- a/crates/sweet/src/wasm/_runner/mod.rs +++ b/crates/sweet/src/wasm/_runner/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod result_export; pub use self::result_export::*; pub mod test_runner_wasm; diff --git a/crates/sweet/src/wasm/_ui/mod.rs b/crates/sweet/src/wasm/_ui/mod.rs index e47ba19b..0e07b4fd 100644 --- a/crates/sweet/src/wasm/_ui/mod.rs +++ b/crates/sweet/src/wasm/_ui/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod root; pub use self::root::*; pub mod sweet_style_g; diff --git a/crates/sweet/src/wasm/_ui/settings/mod.rs b/crates/sweet/src/wasm/_ui/settings/mod.rs index 9318085f..6502f292 100644 --- a/crates/sweet/src/wasm/_ui/settings/mod.rs +++ b/crates/sweet/src/wasm/_ui/settings/mod.rs @@ -1,2 +1,3 @@ +#![allow(unused_imports)] pub mod settings; pub use self::settings::*; diff --git a/crates/sweet/src/wasm/mod.rs b/crates/sweet/src/wasm/mod.rs index 0f07cd6b..20be5d16 100644 --- a/crates/sweet/src/wasm/mod.rs +++ b/crates/sweet/src/wasm/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod _matchers; pub use self::_matchers::*; pub mod _ui; diff --git a/crates/sweet/test/bevy_tests/mod.rs b/crates/sweet/test/bevy_tests/mod.rs index 6ff68add..63703c6f 100644 --- a/crates/sweet/test/bevy_tests/mod.rs +++ b/crates/sweet/test/bevy_tests/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod vec3; pub use self::vec3::*; pub mod app; diff --git a/crates/sweet/test/common/matcher.rs b/crates/sweet/test/common/matcher.rs index 8eb7d8a2..1ad6d686 100644 --- a/crates/sweet/test/common/matcher.rs +++ b/crates/sweet/test/common/matcher.rs @@ -66,11 +66,13 @@ sweet! { expect(Ok(())).to_be_ok()?; expect(Ok(())).not().to_be_err()?; - expect(Err(anyhow!("foo"))).to_be_err()?; - expect(Err(anyhow!("foo"))).not().to_be_ok()?; + let err = || -> anyhow::Result<(), anyhow::Error> { Err(anyhow!("foo")) }; - expect(Err(anyhow!("foo"))).to_be_err_str("foo")?; - expect(Err(anyhow!("foo"))).not().to_be_err_str("foobar")?; + expect(err()).to_be_err()?; + expect(err()).not().to_be_ok()?; + + expect(err()).to_be_err_str("foo")?; + expect(err()).not().to_be_err_str("foobar")?; } diff --git a/crates/sweet/test/common/mod.rs b/crates/sweet/test/common/mod.rs index 778e2fa7..fac8cdb2 100644 --- a/crates/sweet/test/common/mod.rs +++ b/crates/sweet/test/common/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod test_case; pub use self::test_case::*; pub mod matcher; diff --git a/crates/sweet/test/mod.rs b/crates/sweet/test/mod.rs index 8200b6fc..b86da967 100644 --- a/crates/sweet/test/mod.rs +++ b/crates/sweet/test/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod native_tests; pub mod wasm_tests; pub mod common; diff --git a/crates/sweet/test/native_tests/mod.rs b/crates/sweet/test/native_tests/mod.rs index c282e3e9..8fba395b 100644 --- a/crates/sweet/test/native_tests/mod.rs +++ b/crates/sweet/test/native_tests/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod test_case; pub use self::test_case::*; pub mod fantoccini; diff --git a/crates/sweet/test/wasm_tests/mod.rs b/crates/sweet/test/wasm_tests/mod.rs index f1f142e0..313d0917 100644 --- a/crates/sweet/test/wasm_tests/mod.rs +++ b/crates/sweet/test/wasm_tests/mod.rs @@ -1,3 +1,4 @@ +#![allow(unused_imports)] pub mod matcher_el; pub use self::matcher_el::*; pub mod macro_expands; diff --git a/justfile b/justfile index f2476b6d..aeb93c73 100644 --- a/justfile +++ b/justfile @@ -3,9 +3,9 @@ set positional-arguments crates := 'forky forky_cli forky_core forky_play forky_bevy sweet' # features := '--features forky_play/shader_debug_internal' -# features := '--features sweet/bevy_core' +features := '--features sweet/bevy_core' # features := '--features sweet/bevy' -features := '' +# features := '' # forky_esp backtrace := '0' # backtrace := '1'