You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/09/03 13:13:00 UTC

[jira] [Work logged] (AVRO-3173) Rust: fix panic messages in test code

     [ https://issues.apache.org/jira/browse/AVRO-3173?focusedWorklogId=646294&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-646294 ]

ASF GitHub Bot logged work on AVRO-3173:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Sep/21 13:12
            Start Date: 03/Sep/21 13:12
    Worklog Time Spent: 10m 
      Work Description: RyanSkraba commented on pull request #1283:
URL: https://github.com/apache/avro/pull/1283#issuecomment-912529369


   Thanks so much -- it looks like these fixes got in via #1283 !


-- 
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: issues-unsubscribe@avro.apache.org

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


Issue Time Tracking
-------------------

            Worklog Id:     (was: 646294)
    Remaining Estimate: 0h
            Time Spent: 10m

> Rust: fix panic messages in test code
> -------------------------------------
>
>                 Key: AVRO-3173
>                 URL: https://issues.apache.org/jira/browse/AVRO-3173
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: rust
>            Reporter: Martin Tzvetanov Grigorov
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Running `cargo test` (Rust 1.53.0) produces the following warnings:
>  
> {code:java}
> warning: panic message is not a string literal
>     --> tests/schema.rs:1173:13
>      |
> 1173 |             e.to_string()
>      |             ^^^^^^^^^^^^^
>      |
>      = note: `#[warn(non_fmt_panic)]` on by default
>      = note: this is no longer accepted in Rust 2021
> help: add a "{}" format string to Display the message
>      |
> 1173 |             "{}", e.to_string()
>      |             ^^^^^warning: 1 warning emitted
>  {code}
>  
> {code:java}
>  warning: panic message is not a string literal
>    --> tests/io.rs:105:13
>     |
> 105 |             format!("value {:?} does not validate schema: {}", value, raw_schema)
>     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     |
>     = note: `#[warn(non_fmt_panic)]` on by default
>     = note: this is no longer accepted in Rust 2021
>     = note: the panic!() macro supports formatting, so there's no need for the format!() macro here
> help: remove the `format!(..)` macro call
>     |
> 105 |             "value {:?} does not validate schema: {}", value, raw_schema
>     |            --                                                          --warning: 1 warning emitted{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)