diff --git a/Cargo.toml b/Cargo.toml index 9621680..3ee052c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,13 +28,13 @@ r2d2 = "0.8" uuid = { version = "1.0", features = ["v4", "fast-rng"] } [dependencies.rusqlite] -version = "0.39" +version = "0.40" [dev-dependencies] tempfile = "3" [dev-dependencies.rusqlite] -version = "0.39" +version = "0.40" features = ["trace"] diff --git a/src/lib.rs b/src/lib.rs index d00067b..bec297d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -153,7 +153,6 @@ impl r2d2::ManageConnection for SqliteConnectionManager { connection() } } - .map_err(Into::into) .and_then(|mut c| match self.init { None => Ok(c), Some(ref init) => init(&mut c).map(|_| c), @@ -167,7 +166,6 @@ impl r2d2::ManageConnection for SqliteConnectionManager { #[cfg(not(feature = "is-valid"))] "", ) - .map_err(Into::into) } fn has_broken(&self, _: &mut Connection) -> bool {