1
0
mirror of https://github.com/containers/youki synced 2025-04-30 13:20:17 +02:00

fix: cargo fmt

Signed-off-by: xujihui1985 <xujihui1985@gmail.com>
This commit is contained in:
xujihui1985 2025-02-26 14:17:37 +00:00
parent 4bdef55f0f
commit a01ea0a0be
No known key found for this signature in database
GPG Key ID: 8A2632ED92798722

@ -204,10 +204,7 @@ impl Memory {
Ok(memory_data)
}
fn set_oom_control(
cgroup_root: &Path,
disable_oom_killer: bool,
) -> Result<(), WrappedIoError> {
fn set_oom_control(cgroup_root: &Path, disable_oom_killer: bool) -> Result<(), WrappedIoError> {
if disable_oom_killer {
common::write_cgroup_file(cgroup_root.join(CGROUP_MEMORY_OOM_CONTROL), 1)
} else {