We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1e6096 commit 71009ceCopy full SHA for 71009ce
2 files changed
.samoyed/pre-commit
@@ -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
@@ -39,17 +39,15 @@ where
39
}
40
41
42
-pub struct GateTask
43
-{
+pub struct GateTask {
44
#[cfg(feature = "tokio-rt")]
45
inner: Option<JoinHandle<()>>,
46
47
#[cfg(feature = "smol-rt")]
48
inner: Option<smol::Task<()>>,
49
50
51
-impl GateTask
52
+impl GateTask {
53
54
pub fn new(inner: Option<JoinHandle<()>>) -> Self {
55
Self { inner }
0 commit comments