cargo fmt

This commit is contained in:
MeiK2333 2021-01-12 11:28:42 +08:00
parent 211050a434
commit 5289506886
7 changed files with 1198 additions and 1195 deletions

1
src/judger.rs Normal file
View File

@ -0,0 +1 @@

View File

@ -18,6 +18,7 @@ mod error;
mod cgroup;
mod exec_args;
mod judger;
mod process;
mod seccomp;
@ -41,6 +42,8 @@ impl River for RiverService {
// 此处编译很慢
// 为啥,是 try_stream! 这个宏导致的吗?
// 同时内部代码无法被 cargo fmt 格式化
// why?
let output = async_stream::try_stream! {
while let Some(req) = stream.next().await {
let req = req?;

View File

@ -896,8 +896,7 @@ impl SeccompFilter {
return Err(Error::EmptyRulesVector);
}
self
.rules
self.rules
.entry(syscall_number)
.or_insert_with(std::vec::Vec::new)
.append(&mut rules);