Merge pull request #156 from jgallagher/clippy

Address clippy warnings
This commit is contained in:
John Gallagher 2016-05-19 17:06:19 -05:00
commit a4c3158b95
3 changed files with 4 additions and 3 deletions

1
clippy.toml Normal file
View File

@ -0,0 +1 @@
doc-valid-idents = ["SQLite", "lang_transaction"]

View File

@ -34,7 +34,7 @@ impl Connection {
/// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the /// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the
/// underlying SQLite call fails. /// underlying SQLite call fails.
pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result<CachedStatement<'a>> { pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result<CachedStatement<'a>> {
self.cache.get(&self, sql) self.cache.get(self, sql)
} }
/// Set the maximum number of cached prepared statements this connection will hold. /// Set the maximum number of cached prepared statements this connection will hold.

View File

@ -160,8 +160,8 @@ impl error::Error for Error {
Error::InvalidColumnIndex(_) | Error::InvalidColumnIndex(_) |
Error::InvalidColumnName(_) | Error::InvalidColumnName(_) |
Error::InvalidColumnType | Error::InvalidColumnType |
Error::InvalidPath(_) => None, Error::InvalidPath(_) |
Error::StatementChangedRows(_) => None, Error::StatementChangedRows(_) |
Error::StatementFailedToInsertRow => None, Error::StatementFailedToInsertRow => None,
#[cfg(feature = "functions")] #[cfg(feature = "functions")]