Skip to content

remove dead Error variants - #2

Merged
nicholascioli merged 1 commit into
nicholascioli:separation-testfrom
jchemburkar:jchemburkar/dead-error-cleanup
May 22, 2026
Merged

remove dead Error variants#2
nicholascioli merged 1 commit into
nicholascioli:separation-testfrom
jchemburkar:jchemburkar/dead-error-cleanup

Conversation

@jchemburkar

Copy link
Copy Markdown

Removes three Error variants from schema-builder-library that have no remaining emitters after the leaf-primitive trim:

  • NoIdInSample
  • InitialSchemaError
  • ChannelClosed

Their original call sites lived in collection/mod.rs, context, and the channel-based orchestration that were removed earlier in this branch. The downstream schema-builder-orchestration crate (in 10gen/schema-manager-rs) carries its own Error enum with these variants, so removing them from the library Error enum is safe.

Verified locally:

  • cargo clippy -p schema-builder-library --features native-client --lib --tests -- -D warnings : clean
  • cargo test -p schema-builder-library --features native-client --lib : 17 passed

Follow-up to surface review feedback on mongodb#148 before it lands.

NoIdInSample, InitialSchemaError, and ChannelClosed were emitted only from
code paths that were removed when trimming the library to leaf primitives.
None of the remaining schema-builder-library code emits them, and downstream
consumers (schema-builder-orchestration) carry their own Error enum, so
removing them from the library's public Error enum is safe.
@jchemburkar

Copy link
Copy Markdown
Author

Superseded — commit pushed directly to separation-test so it shows up in mongodb#148.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants