Skip to content

Commit ef4b008

Browse files
authored
Merge pull request #200 from supabase/fix/compile-warning
fix: static str compilation warning
2 parents bc8852c + 8c58981 commit ef4b008

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

wrappers/src/fdw/airtable_fdw/airtable_fdw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub(crate) struct AirtableFdw {
4141
}
4242

4343
impl AirtableFdw {
44-
const FDW_NAME: &str = "AirtableFdw";
44+
const FDW_NAME: &'static str = "AirtableFdw";
4545

4646
#[inline]
4747
fn build_url(&self, base_id: &str, table_id: &str, view_id: Option<&String>) -> String {

wrappers/src/fdw/bigquery_fdw/bigquery_fdw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub(crate) struct BigQueryFdw {
6666
}
6767

6868
impl BigQueryFdw {
69-
const FDW_NAME: &str = "BigQueryFdw";
69+
const FDW_NAME: &'static str = "BigQueryFdw";
7070

7171
fn deparse(
7272
&self,
@@ -186,7 +186,7 @@ impl ForeignDataWrapper<BigQueryFdwError> for BigQueryFdw {
186186
Some(sa_key) => sa_key.to_owned(),
187187
None => {
188188
let sa_key_id = require_option("sa_key_id", options)?;
189-
match get_vault_secret(&sa_key_id) {
189+
match get_vault_secret(sa_key_id) {
190190
Some(sa_key) => sa_key,
191191
None => return Ok(ret),
192192
}

wrappers/src/fdw/clickhouse_fdw/clickhouse_fdw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub(crate) struct ClickHouseFdw {
9191
}
9292

9393
impl ClickHouseFdw {
94-
const FDW_NAME: &str = "ClickHouseFdw";
94+
const FDW_NAME: &'static str = "ClickHouseFdw";
9595

9696
fn create_client(&mut self) -> ClickHouseFdwResult<()> {
9797
let pool = Pool::new(self.conn_str.as_str());

wrappers/src/fdw/firebase_fdw/firebase_fdw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub(crate) struct FirebaseFdw {
142142
}
143143

144144
impl FirebaseFdw {
145-
const FDW_NAME: &str = "FirebaseFdw";
145+
const FDW_NAME: &'static str = "FirebaseFdw";
146146

147147
const DEFAULT_AUTH_BASE_URL: &'static str =
148148
"https://identitytoolkit.googleapis.com/v1/projects";

wrappers/src/fdw/logflare_fdw/logflare_fdw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ pub(crate) struct LogflareFdw {
9999
}
100100

101101
impl LogflareFdw {
102-
const FDW_NAME: &str = "LogflareFdw";
103-
const BASE_URL: &str = "https://api.logflare.app/api/endpoints/query/";
102+
const FDW_NAME: &'static str = "LogflareFdw";
103+
const BASE_URL: &'static str = "https://api.logflare.app/api/endpoints/query/";
104104

105105
fn build_url(&self, endpoint: &str) -> LogflareFdwResult<Option<Url>> {
106106
let mut url = self.base_url.join(endpoint)?;

wrappers/src/fdw/s3_fdw/parquet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub(super) struct S3Parquet {
142142
}
143143

144144
impl S3Parquet {
145-
const FDW_NAME: &str = "S3Fdw";
145+
const FDW_NAME: &'static str = "S3Fdw";
146146

147147
// open batch stream from local buffer
148148
pub(super) async fn open_local_stream(&mut self, buf: Vec<u8>) -> S3FdwResult<()> {

wrappers/src/fdw/s3_fdw/s3_fdw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub(crate) struct S3Fdw {
4242
}
4343

4444
impl S3Fdw {
45-
const FDW_NAME: &str = "S3Fdw";
45+
const FDW_NAME: &'static str = "S3Fdw";
4646

4747
// local string line buffer size, in bytes
4848
// Note: this is not a hard limit, just an indication of full buffer

wrappers/src/fdw/stripe_fdw/stripe_fdw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ pub(crate) struct StripeFdw {
265265
}
266266

267267
impl StripeFdw {
268-
const FDW_NAME: &str = "StripeFdw";
268+
const FDW_NAME: &'static str = "StripeFdw";
269269

270270
fn build_url(
271271
&self,

0 commit comments

Comments
 (0)