Skip to content

Commit

Permalink
Eliminate dead_code warning
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 7, 2024
1 parent e5733d0 commit f860cf9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/tests/lifetime.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use serde::{Deserialize, Deserializer, Serialize, Serializer};

#[derive(Debug)]
struct Foo;

#[derive(Clone)]
Expand All @@ -24,7 +25,9 @@ impl<'de, 'a> Deserialize<'de> for Bar<'a> {
}

#[test_fuzz::test_fuzz]
fn target<'a>(bar: Bar<'a>) {}
fn target<'a>(bar: Bar<'a>) {
println!("{:?}", bar.0);
}

#[test]
fn test() {
Expand Down

0 comments on commit f860cf9

Please sign in to comment.