mirror of
https://github.com/isar/rusqlite.git
synced 2025-12-20 02:15:52 +08:00
Rust 2018 idioms
This commit is contained in:
@@ -21,7 +21,7 @@ impl<'conn> LoadExtensionGuard<'conn> {
|
||||
/// Attempt to enable loading extensions. Loading extensions will be
|
||||
/// disabled when this guard goes out of scope. Cannot be meaningfully
|
||||
/// nested.
|
||||
pub fn new(conn: &Connection) -> Result<LoadExtensionGuard> {
|
||||
pub fn new(conn: &Connection) -> Result<LoadExtensionGuard<'_>> {
|
||||
conn.load_extension_enable()
|
||||
.map(|_| LoadExtensionGuard { conn })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user