Skip to content

Commit 5b30862

Browse files
committed
Remove unneeded insignificant type in test
1 parent cb95ada commit 5b30862

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,6 @@ mod issue28 {
309309

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

312-
#[allow(dead_code)]
313-
struct Struct {}
314-
315312
#[async_trait]
316313
trait Trait1<'a> {
317314
async fn f(x: Str<'a>) -> &'a str;
@@ -321,7 +318,7 @@ mod issue28 {
321318
}
322319

323320
#[async_trait]
324-
impl<'a> Trait1<'a> for Struct {
321+
impl<'a> Trait1<'a> for str {
325322
async fn f(x: Str<'a>) -> &'a str {
326323
x.0
327324
}

0 commit comments

Comments
 (0)