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() {