hk 1.44.2

A tool for managing git hooks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::file_rw_locks::Flocks;
use tokio::sync::OwnedSemaphorePermit;

#[allow(unused)]
#[derive(Debug)]
pub struct StepLocks {
    flocks: Flocks,
    semaphore: OwnedSemaphorePermit,
}

impl StepLocks {
    pub fn new(flocks: Flocks, semaphore: OwnedSemaphorePermit) -> Self {
        Self { flocks, semaphore }
    }
}