From f6794696ac178eff3b927fc8223d32b050253ece Mon Sep 17 00:00:00 2001 From: Jisu-Woniu <31986081+Jisu-Woniu@users.noreply.github.com> Date: Thu, 4 Apr 2024 02:54:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor(rsjudge-runner):=20=F0=9F=9A=A8=20fix?= =?UTF-8?q?=20clippy=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/rsjudge-runner/src/caps_check.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/rsjudge-runner/src/caps_check.rs b/crates/rsjudge-runner/src/caps_check.rs index 17d6bc4..fce1d60 100644 --- a/crates/rsjudge-runner/src/caps_check.rs +++ b/crates/rsjudge-runner/src/caps_check.rs @@ -1,5 +1,3 @@ -use std::convert::identity; - use caps::{errors::CapsError, has_cap, Capability}; use crate::error::{Error, Result}; @@ -16,7 +14,7 @@ where }) .collect::, CapsError>>()? .into_iter() - .filter_map(identity) + .flatten() .collect::>(); if missing_caps.is_empty() {