File tree 2 files changed +4
-4
lines changed
core/src/datasource/file_format
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,9 +155,9 @@ impl DefaultFileType {
155
155
}
156
156
}
157
157
158
- /// get a [FileFormatFactory] struct
159
- pub fn get_format_factory ( & self ) -> Arc < dyn FileFormatFactory > {
160
- self . file_format_factory . clone ( )
158
+ /// get a reference to the inner [FileFormatFactory] struct
159
+ pub fn as_format_factory ( & self ) -> & Arc < dyn FileFormatFactory > {
160
+ & self . file_format_factory
161
161
}
162
162
}
163
163
Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ async fn roundtrip_logical_plan_copy_to_csv() -> Result<()> {
487
487
. downcast_ref :: < DefaultFileType > ( )
488
488
. unwrap ( ) ;
489
489
490
- let format_factory = file_type. get_format_factory ( ) ;
490
+ let format_factory = file_type. as_format_factory ( ) ;
491
491
let csv_factory = format_factory
492
492
. as_ref ( )
493
493
. as_any ( )
You can’t perform that action at this time.
0 commit comments