Skip to content

Commit 027fc17

Browse files
committed
f
1 parent 3d4494b commit 027fc17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver/src/rest_api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ impl IConnection for RestAPIConnection {
176176
}
177177
}
178178

179-
impl RestAPIConnection {
179+
impl<'o> RestAPIConnection {
180180
pub async fn try_create(dsn: &str, name: String) -> Result<Self> {
181181
let client = APIClient::new(dsn, Some(name)).await?;
182182
Ok(Self { client })
183183
}
184184

185-
fn default_file_format_options() -> BTreeMap<&'static str, &'static str> {
185+
fn default_file_format_options() -> BTreeMap<&'o str, &'o str> {
186186
vec![
187187
("type", "CSV"),
188188
("field_delimiter", ","),
@@ -193,7 +193,7 @@ impl RestAPIConnection {
193193
.collect()
194194
}
195195

196-
fn default_copy_options() -> BTreeMap<&'static str, &'static str> {
196+
fn default_copy_options() -> BTreeMap<&'o str, &'o str> {
197197
vec![("purge", "true")].into_iter().collect()
198198
}
199199
fn parse_row_count_string(value_str: &str) -> Result<i64, String> {

0 commit comments

Comments
 (0)