mirror of
https://github.com/isar/rusqlite.git
synced 2025-12-20 02:15:52 +08:00
Rustfmt
This commit is contained in:
@@ -22,8 +22,9 @@ pub struct LoadExtensionGuard<'conn> {
|
||||
}
|
||||
|
||||
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.
|
||||
/// 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> {
|
||||
conn.load_extension_enable()
|
||||
.map(|_| LoadExtensionGuard { conn })
|
||||
|
||||
Reference in New Issue
Block a user