Skip to content

Commit f115839

Browse files
committed
Public modules in test to avoid dead_code warnings
1 parent ad14dee commit f115839

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/test.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub async fn test_object_no_send() {
134134
}
135135

136136
// https://github.com/dtolnay/async-trait/issues/1
137-
mod issue1 {
137+
pub mod issue1 {
138138
use async_trait::async_trait;
139139

140140
#[async_trait]
@@ -149,7 +149,7 @@ mod issue1 {
149149
}
150150

151151
// https://github.com/dtolnay/async-trait/issues/2
152-
mod issue2 {
152+
pub mod issue2 {
153153
use async_trait::async_trait;
154154
use std::future::Future;
155155

@@ -167,7 +167,7 @@ mod issue2 {
167167
}
168168

169169
// https://github.com/dtolnay/async-trait/issues/9
170-
mod issue9 {
170+
pub mod issue9 {
171171
use async_trait::async_trait;
172172

173173
#[async_trait]
@@ -177,7 +177,7 @@ mod issue9 {
177177
}
178178

179179
// https://github.com/dtolnay/async-trait/issues/11
180-
mod issue11 {
180+
pub mod issue11 {
181181
use async_trait::async_trait;
182182
use std::sync::Arc;
183183

@@ -195,7 +195,7 @@ mod issue11 {
195195
}
196196

197197
// https://github.com/dtolnay/async-trait/issues/15
198-
mod issue15 {
198+
pub mod issue15 {
199199
use async_trait::async_trait;
200200
use std::marker::PhantomData;
201201

@@ -208,7 +208,7 @@ mod issue15 {
208208
}
209209

210210
// https://github.com/dtolnay/async-trait/issues/17
211-
mod issue17 {
211+
pub mod issue17 {
212212
use async_trait::async_trait;
213213

214214
#[async_trait]
@@ -229,7 +229,7 @@ mod issue17 {
229229
}
230230

231231
// https://github.com/dtolnay/async-trait/issues/23
232-
mod issue23 {
232+
pub mod issue23 {
233233
use async_trait::async_trait;
234234

235235
#[async_trait]
@@ -258,7 +258,7 @@ mod issue23 {
258258

259259
// https://github.com/dtolnay/async-trait/issues/25
260260
#[cfg(async_trait_nightly_testing)]
261-
mod issue25 {
261+
pub mod issue25 {
262262
use crate::executor;
263263
use async_trait::async_trait;
264264
use std::fmt::{Display, Write};
@@ -304,7 +304,7 @@ mod issue25 {
304304
}
305305

306306
// https://github.com/dtolnay/async-trait/issues/28
307-
mod issue28 {
307+
pub mod issue28 {
308308
use async_trait::async_trait;
309309

310310
struct Str<'a>(&'a str);

0 commit comments

Comments
 (0)