Skip to content

fix(core): add #[non_exhaustive] to ChannelError #4726

@bug-ops

Description

@bug-ops

Description

ChannelError in crates/zeph-core/src/channel.rs:119 is missing #[non_exhaustive].

This enum is part of the public API (used by all channel adapters: CLI, Telegram, Discord, Slack) and is likely to gain new variants as new channel backends are added (e.g., Discord-specific error types, WebSocket errors, etc.).

Without #[non_exhaustive], any new variant addition is a breaking change.

Affected enum

crates/zeph-core/src/channel.rs:119 pub enum ChannelError

Expected Behavior

Add #[non_exhaustive] above pub enum ChannelError.

Reproduction Steps

N/A — static analysis finding.

Environment

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexitybugSomething isn't workingchannelszeph-channels crate (Telegram)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions