From 51744584c715c52530b2d50291dea3cfdda973ff Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Mon, 28 Apr 2025 12:07:00 -0400 Subject: [PATCH] lints: move misplaced docstring for LINT_VAR_RUN I guess this got misplaced somewhere along the way while reorganizing the lint code, but I just now noticed it while browsing the code. Also removed bit about "if it does not exist error", because that's not accurate with the present behavior of the lint. Signed-off-by: John Eckersberg --- lib/src/lints.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/lints.rs b/lib/src/lints.rs index b96da7a26..efb618a59 100644 --- a/lib/src/lints.rs +++ b/lib/src/lints.rs @@ -299,9 +299,6 @@ fn lint_inner<'skip>( }) } -/// check for the existence of the /var/run directory -/// if it exists we need to check that it links to /run if not error -/// if it does not exist error. #[context("Linting")] pub(crate) fn lint<'skip>( root: &Dir, @@ -329,6 +326,8 @@ pub(crate) fn lint<'skip>( Ok(()) } +/// check for the existence of the /var/run directory +/// if it exists we need to check that it links to /run if not error #[distributed_slice(LINTS)] static LINT_VAR_RUN: Lint = Lint::new_fatal( "var-run",