From 8d69b034a0453078036411e710a24f8051e5833a Mon Sep 17 00:00:00 2001 From: baoyachi Date: Mon, 27 Sep 2021 16:45:25 +0800 Subject: [PATCH] 'url_starts_with' replace with 'is_prefix_of' method --- src/database/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/connection.rs b/src/database/connection.rs index c673fca9..e5ec4e2c 100644 --- a/src/database/connection.rs +++ b/src/database/connection.rs @@ -129,7 +129,7 @@ impl DatabaseConnection { } impl DbBackend { - pub(crate) fn is_prefix_of(self, base_url: &str) -> bool { + pub fn is_prefix_of(self, base_url: &str) -> bool { match self { Self::Postgres => { base_url.starts_with("postgres://") || base_url.starts_with("postgresql://")