This commit is contained in:
Dongjia "toka" Zhang 2023-04-20 19:04:31 +02:00 committed by GitHub
parent e2f4e83890
commit 39c0a2040b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -527,6 +527,9 @@ where
/// Is needed on top. /// Is needed on top.
#[cfg(all(unix, feature = "std"))] #[cfg(all(unix, feature = "std"))]
pub mod unix_shmem { pub mod unix_shmem {
#[cfg(doc)]
use crate::bolts::shmem::{ShMem, ShMemProvider};
/// Shared memory provider for Android, allocating and forwarding maps over unix domain sockets. /// Shared memory provider for Android, allocating and forwarding maps over unix domain sockets.
#[cfg(target_os = "android")] #[cfg(target_os = "android")]
pub type UnixShMemProvider = ashmem::AshmemShMemProvider; pub type UnixShMemProvider = ashmem::AshmemShMemProvider;

View File

@ -377,7 +377,7 @@ where
} }
// also try to remove the corresponding `.lafl_lock` file if it still exists // also try to remove the corresponding `.lafl_lock` file if it still exists
// (even though it shouldn't exist anymore, at this point in time) // (even though it shouldn't exist anymore, at this point in time)
let _ = fs::remove_file(self.dir_path.join(format!(".{filename}.lafl_lock"))); fs::remove_file(self.dir_path.join(format!(".{filename}.lafl_lock")))?;
} }
Ok(()) Ok(())
} }