From 6c60a5fa7309029959aa3f81e84313753dfc15f4 Mon Sep 17 00:00:00 2001 From: Marius Eriksen Date: Thu, 26 Jun 2025 13:06:18 -0700 Subject: [PATCH] [hyperactor] [trivial] use mod.rs, mod/ pattern Rust allows crate sub modules to be specified in a directly named after the toplevel module, instead of the sigil file "mod.rs". This makes the files more discoverable, and easier to look up in editors, tooling, etc. This change implements this pattern for the core hyperactor crate, specifically: foo/mod.rs -> foo.rs Differential Revision: [D77395488](https://our.internmc.facebook.com/intern/diff/D77395488/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77395488/)! [ghstack-poisoned] --- hyperactor/src/{actor/mod.rs => actor.rs} | 0 hyperactor/src/{channel/mod.rs => channel.rs} | 0 hyperactor/src/{mailbox/mod.rs => mailbox.rs} | 0 hyperactor/src/{sync/mod.rs => sync.rs} | 0 hyperactor/src/{test_utils/mod.rs => test_utils.rs} | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename hyperactor/src/{actor/mod.rs => actor.rs} (100%) rename hyperactor/src/{channel/mod.rs => channel.rs} (100%) rename hyperactor/src/{mailbox/mod.rs => mailbox.rs} (100%) rename hyperactor/src/{sync/mod.rs => sync.rs} (100%) rename hyperactor/src/{test_utils/mod.rs => test_utils.rs} (100%) diff --git a/hyperactor/src/actor/mod.rs b/hyperactor/src/actor.rs similarity index 100% rename from hyperactor/src/actor/mod.rs rename to hyperactor/src/actor.rs diff --git a/hyperactor/src/channel/mod.rs b/hyperactor/src/channel.rs similarity index 100% rename from hyperactor/src/channel/mod.rs rename to hyperactor/src/channel.rs diff --git a/hyperactor/src/mailbox/mod.rs b/hyperactor/src/mailbox.rs similarity index 100% rename from hyperactor/src/mailbox/mod.rs rename to hyperactor/src/mailbox.rs diff --git a/hyperactor/src/sync/mod.rs b/hyperactor/src/sync.rs similarity index 100% rename from hyperactor/src/sync/mod.rs rename to hyperactor/src/sync.rs diff --git a/hyperactor/src/test_utils/mod.rs b/hyperactor/src/test_utils.rs similarity index 100% rename from hyperactor/src/test_utils/mod.rs rename to hyperactor/src/test_utils.rs