Skip to content

fix: Change TestError from uninhabited enum to an empty struct - #313

Merged
martin-g merged 1 commit into
mainfrom
change-TestError-from-enum-to-struct
Oct 14, 2025
Merged

martin-g merged 1 commit into
mainfrom
change-TestError-from-enum-to-struct

Conversation

@martin-g

Copy link
Copy Markdown
Member

Fixes the problem with latest nightly:

error: unreachable expression
    --> avro/src/schema.rs:6054:24
     |
6054 |                 return Err(format!("Expected Details::InvalidNamespace, got {other:?}").into());
     |                        ^^^^-------------------------------------------------------------------^
     |                        |   |
     |                        |   any code following this expression is unreachable
     |                        unreachable expression
     |
note: this expression has type `TestError`, which is uninhabited

Fixed the problem with latest nightly:
```
error: unreachable expression
    --> avro/src/schema.rs:6054:24
     |
6054 |                 return Err(format!("Expected Details::InvalidNamespace, got {other:?}").into());
     |                        ^^^^-------------------------------------------------------------------^
     |                        |   |
     |                        |   any code following this expression is unreachable
     |                        unreachable expression
     |
note: this expression has type `TestError`, which is uninhabited
```
@martin-g
martin-g merged commit 0daff07 into main Oct 14, 2025
@martin-g
martin-g deleted the change-TestError-from-enum-to-struct branch October 14, 2025 11:53
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