Skip to content

Commit

Permalink
Address clippy reported issues
Browse files Browse the repository at this point in the history
Clippy barks about the test-only Foo trait not being used. Allow for
it to just "be there".
  • Loading branch information
d-e-s-o committed Jun 10, 2024
1 parent b7dfcb0 commit 756d49e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019-2023 Daniel Mueller <deso@posteo.net>
// Copyright (C) 2019-2024 Daniel Mueller <deso@posteo.net>
// SPDX-License-Identifier: (Apache-2.0 OR MIT)

#![allow(clippy::eq_op)]
Expand Down Expand Up @@ -120,6 +120,7 @@ async fn trace_with_tokio_attribute_with_arguments() {
// prevent accidental regressions. In the past we were susceptible to a
// compilation error because generated code was using Iterator::map (but
// not using fully qualified syntax).
#[allow(dead_code)]
trait Foo: Sized {
fn map(self) {}
}
Expand Down

0 comments on commit 756d49e

Please sign in to comment.