Skip to content

Commit da8a629

Browse files
committed
Apply suggestion from @adriangb
1 parent 411bcb0 commit da8a629

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
@@ -1378,10 +1378,7 @@ impl DisplayAs for FileScanConfig {
13781378
write!(f, "file_groups=")?;
13791379
FileGroupsDisplay(&self.file_groups).fmt_as(t, f)?;
13801380

1381-
let schema = self
1382-
.projected_schema()
1383-
.map_err(|_| std::fmt::Error)?;
1384-
1381+
let schema = self.projected_schema().map_err(|_| std::fmt::Error)?;
13851382
if !schema.fields().is_empty() {
13861383
write!(f, ", projection={}", ProjectSchemaDisplay(&schema))?;
13871384
}

0 commit comments

Comments
 (0)