Skip to content

Commit 37d3982

Browse files
authored
Change example to avoid compiler warning
Added person.id to output so that the compiler won't complain that the id field in the structure is never used.
1 parent 9ab7218 commit 37d3982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn main() {
4444
name: row.get(1),
4545
data: row.get(2),
4646
};
47-
println!("Found person {}", person.name);
47+
println!("Found person {}: {}", person.id, person.name);
4848
}
4949
}
5050
```

0 commit comments

Comments
 (0)