Merge pull request #181 from gwenn/clippy

Fix clippy warnings
This commit is contained in:
John Gallagher
2016-12-31 01:23:40 -05:00
committed by GitHub
8 changed files with 17 additions and 19 deletions

View File

@@ -274,10 +274,9 @@ impl Connection {
///
/// ```rust
/// # use rusqlite::{Connection, Result};
/// # type c_double = f64;
/// fn scalar_function_example(db: Connection) -> Result<()> {
/// try!(db.create_scalar_function("halve", 1, true, |ctx| {
/// let value = try!(ctx.get::<c_double>(0));
/// let value = try!(ctx.get::<f64>(0));
/// Ok(value / 2f64)
/// }));
///