Closed trevyn closed 2 years ago
This consumes row, but shouldn't:
row
select!(PersonIntegrationTest "WHERE name = ?", row.name.unwrap())
Workaround:
select!(PersonIntegrationTest "WHERE name = ?", row.clone().name.unwrap())
This is not a Turbosql bug; the unwrap() is doing the consuming. Use:
unwrap()
select!(PersonIntegrationTest "WHERE name = ?", row.name.as_ref().unwrap())
This consumes
row
, but shouldn't:Workaround: