STRA-338 S12b (fix): the child module of reasoning_budget no longer shares its parent's name (clippy::module_inception)

This commit is contained in:
Pavlo Ratushnyi
2026-11-05 15:34:16 +01:00
parent 6b5fcd242e
commit 3254b1912b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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: