Skip to content

Commit

Permalink
refactor(rsjudge-runner): 🚨 fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Apr 3, 2024
1 parent 3c3aeda commit f679469
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/rsjudge-runner/src/caps_check.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::convert::identity;

use caps::{errors::CapsError, has_cap, Capability};

use crate::error::{Error, Result};
Expand All @@ -16,7 +14,7 @@ where
})
.collect::<Result<Vec<_>, CapsError>>()?
.into_iter()
.filter_map(identity)
.flatten()
.collect::<Vec<_>>();

if missing_caps.is_empty() {
Expand Down

0 comments on commit f679469

Please sign in to comment.