Skip to content

Commit 83a5ef2

Browse files
committed
fix(test): test case compile error
1 parent d746cef commit 83a5ef2

5 files changed

Lines changed: 7 additions & 0 deletions

File tree

russh/examples/echoserver_certificates.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ impl server::Server for Server {
109109

110110
impl server::Handler for Server {
111111
type Error = russh::Error;
112+
type Data = ();
112113

113114
async fn channel_open_session(
114115
&mut self,

russh/src/server/encrypted.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ mod tests {
225225

226226
impl Handler for Probe {
227227
type Error = Error;
228+
type Data = ();
228229

229230
async fn auth_publickey_offered(
230231
&mut self,
@@ -426,6 +427,7 @@ mod tests {
426427

427428
impl Handler for Probe {
428429
type Error = Error;
430+
type Data = ();
429431

430432
async fn auth_publickey_offered(
431433
&mut self,
@@ -526,6 +528,7 @@ mod tests {
526528

527529
impl Handler for ChannelCallbackProbe {
528530
type Error = Error;
531+
type Data = ();
529532

530533
async fn exec_request(
531534
&mut self,

russh/tests/test_backpressure.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ impl russh::server::Server for HandleBackpressureServer {
243243

244244
impl russh::server::Handler for HandleBackpressureServer {
245245
type Error = anyhow::Error;
246+
type Data = ();
246247

247248
async fn auth_publickey(
248249
&mut self,

russh/tests/test_contention.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ impl russh::server::Server for Server {
125125

126126
impl russh::server::Handler for Server {
127127
type Error = anyhow::Error;
128+
type Data = ();
128129

129130
async fn auth_publickey(
130131
&mut self,

russh/tests/test_server_cert.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ struct TestServer {}
222222

223223
impl server::Handler for TestServer {
224224
type Error = russh::Error;
225+
type Data = ();
225226

226227
async fn auth_publickey(
227228
&mut self,

0 commit comments

Comments
 (0)