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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
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)