Closed HumanG33k closed 2 years ago
When i try to call the source code from the documentation (query part) i have error. (it's call in a fn)
error[E0308]: mismatched types --> src/main.rs:79:20 | 79 | let id: &str = row.get(0); | ---- ^^^^^^^^^^ expected `&str`, found enum `Option` | | | expected due to this | = note: expected reference `&str` found enum `Option<&postgres::Row>`
i currently learn rust. May be the root of my error.
It's look like it's gone without doing anything.
When i try to call the source code from the documentation (query part) i have error. (it's call in a fn)
i currently learn rust. May be the root of my error.