ci: fix rustfmt failed (#748)

This commit is contained in:
weishu
2023-07-11 12:23:56 +08:00
committed by GitHub
parent 047312e0e5
commit eb5a99e4b6
2 changed files with 4 additions and 3 deletions

View File

@@ -30,3 +30,4 @@ jobs:
- uses: LoliGothick/rustfmt-check@master
with:
token: ${{ github.token }}
working-directory: userspace/ksud

View File

@@ -29,8 +29,8 @@ pub fn mount_systemlessly(module_dir: &str) -> Result<()> {
// construct overlay mount params
let dir = std::fs::read_dir(module_dir);
let Ok(dir) = dir else {
bail!("open {} failed", defs::MODULE_DIR);
};
bail!("open {} failed", defs::MODULE_DIR);
};
let mut system_lowerdir: Vec<String> = Vec::new();