mirror of
https://github.com/MeiK2333/river.git
synced 2025-11-04 14:49:40 +08:00
cargo fmt
This commit is contained in:
parent
211050a434
commit
5289506886
1
src/judger.rs
Normal file
1
src/judger.rs
Normal file
@ -0,0 +1 @@
|
||||
|
||||
@ -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?;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user