cargo fmt

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-10-11 09:48:11 +02:00
parent 28e30719e8
commit 95f7232188

View File

@ -166,7 +166,13 @@ impl ProcessLocker {
/// Get oldest shared lock timestamp
pub fn oldest_shared_lock(locker: Arc<Mutex<Self>>) -> Option<i64> {
locker.lock().unwrap().shared_guard_list.values().copied().min()
locker
.lock()
.unwrap()
.shared_guard_list
.values()
.copied()
.min()
}
/// Try to acquire a exclusive lock