Merge pull request #478 from gwenn/fallible-iterator

Make `Rows` implement `FallibleStreamingIterator`
This commit is contained in:
gwenn
2019-03-10 13:13:34 +01:00
committed by GitHub
10 changed files with 143 additions and 103 deletions

View File

@@ -151,7 +151,7 @@ impl FromSql for bool {
impl FromSql for String {
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> {
value.as_str().map(|s| s.to_string())
value.as_str().map(ToString::to_string)
}
}