mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-14 06:34:53 +00:00
shared memory: rustfmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6f8173f67a
commit
0ec1c684ae
@ -101,7 +101,9 @@ fn create_test_dir<T: Init>(filename: &str) -> Option<PathBuf> {
|
||||
#[test]
|
||||
fn test_shared_memory_mutex() -> Result<(), Error> {
|
||||
let path = match create_test_dir::<SingleMutexData>("data1.shm") {
|
||||
None => { return Ok(()); }, // no O_TMPFILE support, can't run test
|
||||
None => {
|
||||
return Ok(()); // no O_TMPFILE support, can't run test
|
||||
}
|
||||
Some(path) => path,
|
||||
};
|
||||
|
||||
@ -137,7 +139,9 @@ fn test_shared_memory_mutex() -> Result<(), Error> {
|
||||
#[test]
|
||||
fn test_shared_memory_multi_mutex() -> Result<(), Error> {
|
||||
let path = match create_test_dir::<SingleMutexData>("data2.shm") {
|
||||
None => { return Ok(()); }, // no O_TMPFILE support, can't run test
|
||||
None => {
|
||||
return Ok(()); // no O_TMPFILE support, can't run test
|
||||
}
|
||||
Some(path) => path,
|
||||
};
|
||||
let shared: SharedMemory<MultiMutexData> = SharedMemory::open(&path, CreateOptions::new())?;
|
||||
|
Loading…
Reference in New Issue
Block a user