mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-14 19:19:12 +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]
|
#[test]
|
||||||
fn test_shared_memory_mutex() -> Result<(), Error> {
|
fn test_shared_memory_mutex() -> Result<(), Error> {
|
||||||
let path = match create_test_dir::<SingleMutexData>("data1.shm") {
|
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,
|
Some(path) => path,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -137,7 +139,9 @@ fn test_shared_memory_mutex() -> Result<(), Error> {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_shared_memory_multi_mutex() -> Result<(), Error> {
|
fn test_shared_memory_multi_mutex() -> Result<(), Error> {
|
||||||
let path = match create_test_dir::<SingleMutexData>("data2.shm") {
|
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,
|
Some(path) => path,
|
||||||
};
|
};
|
||||||
let shared: SharedMemory<MultiMutexData> = SharedMemory::open(&path, CreateOptions::new())?;
|
let shared: SharedMemory<MultiMutexData> = SharedMemory::open(&path, CreateOptions::new())?;
|
||||||
|
Loading…
Reference in New Issue
Block a user