From 3254b1912b76a6103d4c216c091603a077aef9c3 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Thu, 5 Nov 2026 15:34:16 +0100 Subject: [PATCH] STRA-338 S12b (fix): the child module of reasoning_budget no longer shares its parent's name (clippy::module_inception) --- control-plane/src/reasoning_budget.rs | 4 ++-- .../reasoning_budget/{reasoning_budget.rs => budget_fn.rs} | 0 scripts/dev/split_module.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename control-plane/src/reasoning_budget/{reasoning_budget.rs => budget_fn.rs} (100%) diff --git a/control-plane/src/reasoning_budget.rs b/control-plane/src/reasoning_budget.rs index 4e05fd65..b3ce8e82 100644 --- a/control-plane/src/reasoning_budget.rs +++ b/control-plane/src/reasoning_budget.rs @@ -79,9 +79,9 @@ pub struct Run { #[cfg(test)] mod tests; -mod reasoning_budget; +mod budget_fn; #[allow(unused_imports)] -pub use reasoning_budget::*; +pub use budget_fn::*; mod run; #[allow(unused_imports)] pub use run::*; diff --git a/control-plane/src/reasoning_budget/reasoning_budget.rs b/control-plane/src/reasoning_budget/budget_fn.rs similarity index 100% rename from control-plane/src/reasoning_budget/reasoning_budget.rs rename to control-plane/src/reasoning_budget/budget_fn.rs diff --git a/scripts/dev/split_module.py b/scripts/dev/split_module.py index 5d2fdba5..05015b7c 100644 --- a/scripts/dev/split_module.py +++ b/scripts/dev/split_module.py @@ -56,7 +56,7 @@ def process(path, target, dry_run, loaded): directory = child_dir(path) explicit = directory.name if path.name in loaded else None reserved = {p.stem for p in directory.glob("*.rs")} if directory.is_dir() else set() - result = plan_split(read(path), target, explicit, reserved | {"tests"}) + result = plan_split(read(path), target, explicit, reserved | {"tests", path.stem}) if result is None: return "skipped", "no fn or impl to move" if not dry_run: