Skip to content

Commit 9ceb271

Browse files
authored
Apply suggestion from @adriangb
1 parent b1ca9c7 commit 9ceb271

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

datafusion/datasource/src/file_scan_config.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,10 +1356,7 @@ impl DisplayAs for FileScanConfig {
13561356
write!(f, "file_groups=")?;
13571357
FileGroupsDisplay(&self.file_groups).fmt_as(t, f)?;
13581358

1359-
let schema = self
1360-
.projected_schema()
1361-
.map_err(|_| std::fmt::Error)?;
1362-
1359+
let schema = self.projected_schema().map_err(|_| std::fmt::Error)?;
13631360
if !schema.fields().is_empty() {
13641361
write!(f, ", projection={}", ProjectSchemaDisplay(&schema))?;
13651362
}

0 commit comments

Comments
 (0)