Skip to content

Commit

Permalink
refactor: 利用类型推断消除错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Jul 22, 2024
1 parent 83f9192 commit 76b5512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/scheduler/looper/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ fn mount_bind(src_path: &str, dest_path: &str) {
umount2(dest_path.as_ptr(), libc::MNT_DETACH);

mount(
src_path.as_ptr().cast::<u8>(),
dest_path.as_ptr().cast::<u8>(),
src_path.as_ptr().cast(),
dest_path.as_ptr().cast(),
ptr::null(),
MS_BIND | MS_REC,
ptr::null(),
Expand Down

0 comments on commit 76b5512

Please sign in to comment.