martin-g opened a new pull request, #204:
URL: https://github.com/apache/avro-rs/pull/204

   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<'_>> {
       |                                                 ++++
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to