Skip to content

Commit a71e97a

Browse files
committed
fix clippy issue
Change-Id: I63c3ae0a2d7c52f027f773bf3dd5a91b21952849
1 parent e45eb83 commit a71e97a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/basic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use duckdb::{params, Connection, Result};
88

99
#[derive(Debug)]
1010
struct Person {
11-
id: i32,
11+
_id: i32,
1212
name: String,
1313
data: Option<Vec<u8>>,
1414
}
@@ -27,7 +27,7 @@ fn main() -> Result<()> {
2727
)?;
2828

2929
let me = Person {
30-
id: 0,
30+
_id: 0,
3131
name: "Steven".to_string(),
3232
data: None,
3333
};
@@ -40,7 +40,7 @@ fn main() -> Result<()> {
4040
let mut stmt = conn.prepare("SELECT id, name, data FROM person")?;
4141
let person_iter = stmt.query_map([], |row| {
4242
Ok(Person {
43-
id: row.get(0)?,
43+
_id: row.get(0)?,
4444
name: row.get(1)?,
4545
data: row.get(2)?,
4646
})

0 commit comments

Comments
 (0)