Skip to content

Commit 14f9dd3

Browse files
committed
fix
1 parent f6a4ea4 commit 14f9dd3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/context.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ impl PySessionContext {
777777

778778
// Create a future that uses our helper function
779779
let result_future = async move {
780-
let schema_ref = schema_owned.as_ref().map(|s| s.as_ref());
780+
let schema_ref = schema_owned.as_ref();
781781
let options = create_csv_read_options(
782782
has_header,
783783
delimiter_byte,
@@ -798,7 +798,7 @@ impl PySessionContext {
798798

799799
// Create a future that moves owned values
800800
let result_future = async move {
801-
let schema_ref = schema_owned.as_ref().map(|s| s.as_ref());
801+
let schema_ref = schema_owned.as_ref();
802802
let options = create_csv_read_options(
803803
has_header,
804804
delimiter_byte,
@@ -1407,14 +1407,14 @@ impl PySessionContext {
14071407
}
14081408

14091409
/// Create CsvReadOptions with the provided parameters
1410-
fn create_csv_read_options(
1410+
fn create_csv_read_options<'a>(
14111411
has_header: bool,
14121412
delimiter_byte: u8,
14131413
schema_infer_max_records: usize,
1414-
file_extension: &str,
1414+
file_extension: &'a str,
14151415
file_compression_type: Option<String>,
1416-
schema: Option<&Schema>,
1417-
) -> PyResult<CsvReadOptions> {
1416+
schema: Option<&'a Schema>,
1417+
) -> PyResult<CsvReadOptions<'a>> {
14181418
let mut options = CsvReadOptions::new()
14191419
.has_header(has_header)
14201420
.delimiter(delimiter_byte)

0 commit comments

Comments
 (0)