Skip to content

chore: Fix the build with latest nightly compiler (06.06.2025) - #204

Merged
martin-g merged 1 commit into
mainfrom
fix-build-with-nightly-06-06-2025
Jun 6, 2025
Merged

martin-g merged 1 commit into
mainfrom
fix-build-with-nightly-06-06-2025

Conversation

@martin-g

@martin-g martin-g commented Jun 6, 2025

Copy link
Copy Markdown
Member

Error:

error: lifetime flowing from input to output with different syntax can be confusing
   --> avro/src/types.rs:238:24
    |
238 |     pub fn new(schema: &Schema) -> Option<Record> {
    |                        ^^^^^^^            ------ the lifetime gets resolved as `'_`
    |                        |
    |                        this lifetime flows to the output
    |
    = note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]`
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
238 |     pub fn new(schema: &Schema) -> Option<Record<'_>> {
    |                                                 ++++

Error:
```
error: lifetime flowing from input to output with different syntax can be confusing
   --> avro/src/types.rs:238:24
    |
238 |     pub fn new(schema: &Schema) -> Option<Record> {
    |                        ^^^^^^^            ------ the lifetime gets resolved as `'_`
    |                        |
    |                        this lifetime flows to the output
    |
    = note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]`
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
    |
238 |     pub fn new(schema: &Schema) -> Option<Record<'_>> {
    |                                                 ++++
```

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
@martin-g
martin-g force-pushed the fix-build-with-nightly-06-06-2025 branch from 6d81ad0 to baa1716 Compare June 6, 2025 08:50
@martin-g
martin-g merged commit 257816d into main Jun 6, 2025
@martin-g
martin-g deleted the fix-build-with-nightly-06-06-2025 branch June 6, 2025 10:36
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.

1 participant