diff --git a/src/blob/mod.rs b/src/blob/mod.rs index 9cb0bec..0d5d7e9 100644 --- a/src/blob/mod.rs +++ b/src/blob/mod.rs @@ -111,10 +111,7 @@ //! // Insert a BLOB into the `content` column of `test_table`. Note that the Blob //! // I/O API provides no way of inserting or resizing BLOBs in the DB -- this //! // must be done via SQL. -//! db.execute( -//! "INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", -//! [], -//! )?; +//! db.execute("INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", [])?; //! //! // Get the row id off the BLOB we just inserted. //! let rowid = db.last_insert_rowid(); @@ -162,10 +159,7 @@ //! // Insert a blob into the `content` column of `test_table`. Note that the Blob //! // I/O API provides no way of inserting or resizing blobs in the DB -- this //! // must be done via SQL. -//! db.execute( -//! "INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", -//! [], -//! )?; +//! db.execute("INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", [])?; //! // Get the row id off the blob we just inserted. //! let rowid = db.last_insert_rowid(); //! // Open the blob we just inserted for IO. diff --git a/src/functions.rs b/src/functions.rs index 1c613e8..57bf701 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -43,11 +43,10 @@ //! let db = Connection::open_in_memory()?; //! add_regexp_function(&db)?; //! -//! let is_match: bool = db.query_row( -//! "SELECT regexp('[aeiou]*', 'aaaaeeeiii')", -//! [], -//! |row| row.get(0), -//! )?; +//! let is_match: bool = +//! db.query_row("SELECT regexp('[aeiou]*', 'aaaaeeeiii')", [], |row| { +//! row.get(0) +//! })?; //! //! assert!(is_match); //! Ok(())