From ed4bcc50123f1f85d757fd363d75a97f68fc62fa Mon Sep 17 00:00:00 2001 From: Alban Dumouilla Date: Thu, 12 Dec 2024 15:06:06 +0100 Subject: [PATCH] Lint --- core/src/databases/remote_databases/get_remote_database.rs | 3 +++ core/src/databases/remote_databases/remote_database.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/core/src/databases/remote_databases/get_remote_database.rs b/core/src/databases/remote_databases/get_remote_database.rs index 5bce19650670..45069a302721 100644 --- a/core/src/databases/remote_databases/get_remote_database.rs +++ b/core/src/databases/remote_databases/get_remote_database.rs @@ -17,5 +17,8 @@ pub async fn get_remote_database( let db = SnowflakeRemoteDatabase::new(content)?; Ok(Box::new(db) as Box) } + CredentialProvider::Modjo => { + anyhow::bail!("Modjo is not a remote database provider") + } } } diff --git a/core/src/databases/remote_databases/remote_database.rs b/core/src/databases/remote_databases/remote_database.rs index 6c1ae0f6b719..2f2ae5bb65d5 100644 --- a/core/src/databases/remote_databases/remote_database.rs +++ b/core/src/databases/remote_databases/remote_database.rs @@ -35,5 +35,9 @@ pub async fn get_remote_database( let db = SnowflakeRemoteDatabase::new(content)?; Ok(Box::new(db) as Box) } + _ => Err(anyhow::anyhow!( + "Provider {} is not a remote database", + provider + )), } }