Skip to content

Commit 71009ce

Browse files
committed
chore: added pre-commit hook
1 parent b1e6096 commit 71009ce

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.samoyed/pre-commit

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env sh
2+
# Add your pre-commit checks here. For example:
3+
# echo "Running Samoyed sample pre-commit"
4+
# exit 0
5+
cargo fmt --check
6+
7+
cargo test

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,15 @@ where
3939
}
4040
}
4141

42-
pub struct GateTask
43-
{
42+
pub struct GateTask {
4443
#[cfg(feature = "tokio-rt")]
4544
inner: Option<JoinHandle<()>>,
4645

4746
#[cfg(feature = "smol-rt")]
4847
inner: Option<smol::Task<()>>,
4948
}
5049

51-
impl GateTask
52-
{
50+
impl GateTask {
5351
#[cfg(feature = "tokio-rt")]
5452
pub fn new(inner: Option<JoinHandle<()>>) -> Self {
5553
Self { inner }

0 commit comments

Comments
 (0)