From d6bb30ccad3ea21a0a8d62b98b224989de8676de Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 20 Jun 2024 14:30:12 -0400 Subject: [PATCH] cli: Drop a duplicate rootfs open Just happened to notice this. Signed-off-by: Colin Walters --- lib/src/cli.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/cli.rs b/lib/src/cli.rs index e169bc5a9..e12901d83 100644 --- a/lib/src/cli.rs +++ b/lib/src/cli.rs @@ -700,8 +700,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> { ); } - let root = cap_std::fs::Dir::open_ambient_dir("/", cap_std::ambient_authority())?; - lints::lint(&root)?; + lints::lint(root)?; Ok(()) } },