diff --git a/src/blob.rs b/src/blob.rs index 2facccf..f4ca951 100644 --- a/src/blob.rs +++ b/src/blob.rs @@ -68,8 +68,8 @@ pub struct Blob<'conn> { } impl Connection { - /// `feature = "blob"` Open a handle to the BLOB located in `row_id`, `column`, - /// `table` in database `db`. + /// `feature = "blob"` Open a handle to the BLOB located in `row_id`, + /// `column`, `table` in database `db`. /// /// # Failure /// diff --git a/src/session.rs b/src/session.rs index 34a53f4..cbc1121 100644 --- a/src/session.rs +++ b/src/session.rs @@ -19,8 +19,8 @@ use crate::{errmsg_to_string, str_to_cstring, Connection, DatabaseName, Result}; // https://sqlite.org/session.html -/// `feature = "session"` An instance of this object is a session that can be used to record changes -/// to a database. +/// `feature = "session"` An instance of this object is a session that can be +/// used to record changes to a database. pub struct Session<'conn> { phantom: PhantomData<&'conn ()>, s: *mut ffi::sqlite3_session, @@ -377,8 +377,8 @@ impl Drop for ChangesetIter<'_> { } } -/// `feature = "session"` An item passed to a conflict-handler by `Connection::apply`, -/// or an item generated by `ChangesetIter::next`. +/// `feature = "session"` An item passed to a conflict-handler by +/// `Connection::apply`, or an item generated by `ChangesetIter::next`. // TODO enum ? Delete, Insert, Update, ... pub struct ChangesetItem { it: *mut ffi::sqlite3_changeset_iter, diff --git a/src/statement.rs b/src/statement.rs index 2c3c14e..eeacbbc 100644 --- a/src/statement.rs +++ b/src/statement.rs @@ -757,8 +757,9 @@ impl Statement<'_> { ffi::SQLITE_TEXT => { let s = unsafe { // Quoting from "Using SQLite" book: - // To avoid problems, an application should first extract the desired type using a sqlite3_column_xxx() function, - // and then call the appropriate sqlite3_column_bytes() function. + // To avoid problems, an application should first extract the desired type using + // a sqlite3_column_xxx() function, and then call the + // appropriate sqlite3_column_bytes() function. let text = ffi::sqlite3_column_text(raw, col as c_int); let len = ffi::sqlite3_column_bytes(raw, col as c_int); assert!( diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 97124b5..fdbede5 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -396,7 +396,8 @@ impl IndexConstraint<'_> { } } -/// `feature = "vtab"` Information about what parameters to pass to `VTabCursor.filter`. +/// `feature = "vtab"` Information about what parameters to pass to +/// `VTabCursor.filter`. pub struct IndexConstraintUsage<'a>(&'a mut ffi::sqlite3_index_constraint_usage); impl IndexConstraintUsage<'_> { @@ -477,7 +478,8 @@ pub trait VTabCursor: Sized { fn rowid(&self) -> Result; } -/// `feature = "vtab"` Context is used by `VTabCursor.column` to specify the cell value. +/// `feature = "vtab"` Context is used by `VTabCursor.column` to specify the +/// cell value. pub struct Context(*mut ffi::sqlite3_context); impl Context {