diff --git a/rust/core/src/driver_manager.rs b/rust/core/src/driver_manager.rs index 8e066a0275..f4a9d7f862 100644 --- a/rust/core/src/driver_manager.rs +++ b/rust/core/src/driver_manager.rs @@ -826,7 +826,7 @@ impl Connection for ManagedConnection { Ok(reader) } - fn get_objects( + fn get_objects<'a>( &self, depth: crate::options::ObjectDepth, catalog: Option<&str>, @@ -834,7 +834,7 @@ impl Connection for ManagedConnection { table_name: Option<&str>, table_type: Option>, column_name: Option<&str>, - ) -> Result { + ) -> Result { let catalog = catalog.map(CString::new).transpose()?; let db_schema = db_schema.map(CString::new).transpose()?; let table_name = table_name.map(CString::new).transpose()?; diff --git a/rust/core/src/lib.rs b/rust/core/src/lib.rs index 8568c8b82d..0475f59dca 100644 --- a/rust/core/src/lib.rs +++ b/rust/core/src/lib.rs @@ -277,15 +277,15 @@ pub trait Connection: Optionable