From 3354b895f3978c224a158d43baa1a81fb1c9ee3f Mon Sep 17 00:00:00 2001 From: Sven Rademakers Date: Sat, 28 Oct 2023 10:31:35 +0100 Subject: [PATCH] sanitize module layout files added a clippy lint to only allow self named modules files --- src/{api/mod.rs => api.rs} | 0 src/{app/mod.rs => app.rs} | 0 src/{authentication/mod.rs => authentication.rs} | 0 src/{firmware_update/mod.rs => firmware_update.rs} | 0 src/{hal/mod.rs => hal.rs} | 0 src/main.rs | 1 + src/{persistency/mod.rs => persistency.rs} | 0 src/{utils/mod.rs => utils.rs} | 0 8 files changed, 1 insertion(+) rename src/{api/mod.rs => api.rs} (100%) rename src/{app/mod.rs => app.rs} (100%) rename src/{authentication/mod.rs => authentication.rs} (100%) rename src/{firmware_update/mod.rs => firmware_update.rs} (100%) rename src/{hal/mod.rs => hal.rs} (100%) rename src/{persistency/mod.rs => persistency.rs} (100%) rename src/{utils/mod.rs => utils.rs} (100%) diff --git a/src/api/mod.rs b/src/api.rs similarity index 100% rename from src/api/mod.rs rename to src/api.rs diff --git a/src/app/mod.rs b/src/app.rs similarity index 100% rename from src/app/mod.rs rename to src/app.rs diff --git a/src/authentication/mod.rs b/src/authentication.rs similarity index 100% rename from src/authentication/mod.rs rename to src/authentication.rs diff --git a/src/firmware_update/mod.rs b/src/firmware_update.rs similarity index 100% rename from src/firmware_update/mod.rs rename to src/firmware_update.rs diff --git a/src/hal/mod.rs b/src/hal.rs similarity index 100% rename from src/hal/mod.rs rename to src/hal.rs diff --git a/src/main.rs b/src/main.rs index a941f53..010babc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +#![deny(clippy::mod_module_files)] mod api; mod app; mod authentication; diff --git a/src/persistency/mod.rs b/src/persistency.rs similarity index 100% rename from src/persistency/mod.rs rename to src/persistency.rs diff --git a/src/utils/mod.rs b/src/utils.rs similarity index 100% rename from src/utils/mod.rs rename to src/utils.rs