Skip to content

Commit 7f4b02c

Browse files
authored
fix: import CollectInto from crate::utils to fix default-feature build (#3123)
`schema/mod.rs` imported `CollectInto` from the crate root, but that re-export is gated behind the `internal-api` feature. `cargo publish` verifies the packaged crate with default features (`delta_kernel`'s `default = []`), so the crate failed to compile without `internal-api` (E0432 unresolved import) -- which blocked the v0.27.0 publish. The `--all-features` CI build enabled `internal-api`, so it never exercised this path. Fix: import `CollectInto` from `crate::utils` (where it's defined), which resolves regardless of feature flags. Verified with `cargo check -p delta_kernel --no-default-features`: compiles with 0 errors (previously E0432).
1 parent 0aefffb commit 7f4b02c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/src/schema/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use crate::table_features::{
2424
StaleAnnotationPolicy,
2525
};
2626
use crate::transforms::{transform_output_type, SchemaTransform};
27-
use crate::utils::require;
28-
use crate::{CollectInto, DeltaResult, Error};
27+
use crate::utils::{require, CollectInto};
28+
use crate::{DeltaResult, Error};
2929

3030
pub(crate) mod column_default;
3131
pub use column_default::ColumnDefault;

0 commit comments

Comments
 (0)