Fix rustdoc warnings

This commit is contained in:
gwenn 2019-02-02 15:18:11 +01:00
parent 176e4c232b
commit 519ef9dc84

View File

@ -139,11 +139,11 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
/// Panics if calling `row.get_checked(idx)` would return an error, /// Panics if calling `row.get_checked(idx)` would return an error,
/// including: /// including:
/// ///
/// * If the underlying SQLite column type is not a valid type as a /// * If the underlying SQLite column type is not a valid type as a
/// source for `T` /// source for `T`
/// * If the underlying SQLite integral value is outside the range /// * If the underlying SQLite integral value is outside the range
/// representable by `T` /// representable by `T`
/// * If `idx` is outside the range of columns in the returned query /// * If `idx` is outside the range of columns in the returned query
pub fn get<I: RowIndex, T: FromSql>(&self, idx: I) -> T { pub fn get<I: RowIndex, T: FromSql>(&self, idx: I) -> T {
self.get_checked(idx).unwrap() self.get_checked(idx).unwrap()
} }
@ -215,8 +215,8 @@ impl<'a, 'stmt> Row<'a, 'stmt> {
/// Panics if calling `row.get_raw_checked(idx)` would return an error, /// Panics if calling `row.get_raw_checked(idx)` would return an error,
/// including: /// including:
/// ///
/// * If `idx` is outside the range of columns in the returned query. /// * If `idx` is outside the range of columns in the returned query.
/// * If `idx` is not a valid column name for this row. /// * If `idx` is not a valid column name for this row.
pub fn get_raw<I: RowIndex>(&self, idx: I) -> ValueRef<'a> { pub fn get_raw<I: RowIndex>(&self, idx: I) -> ValueRef<'a> {
self.get_raw_checked(idx).unwrap() self.get_raw_checked(idx).unwrap()
} }