Skip to content

Conversation

@martin-g
Copy link
Member

No JIRA ticket!

What is the purpose of the change

This PR fixes minor lint warnings produced by Rust 1.66.0.

Verifying this change

CI should pass!

Documentation

  • Does this pull request introduce a new feature? no

error: casting to the same type is unnecessary (`i64` -> `i64`)
   --> avro/tests/io.rs:135:64
    |
135 |         let encoded = to_avro_datum(&Schema::Long, Value::Long(*number as i64)).unwrap();
    |                                                                ^^^^^^^^^^^^^^ help: try: `*number`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
    = note: `-D clippy::unnecessary-cast` implied by `-D clippy::all`

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
warning: unclosed HTML tag `Value`
   --> avro/src/writer.rs:459:23
    |
459 |     /// Write the Into<Value> to the provided Write object. Returns a result with the number
    |                       ^^^^^^^
    |
    = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
help: try marking as source code
    |
459 |     /// Write the `Into<Value>` to the provided Write object. Returns a result with the number
    |                   +           +

warning: `apache-avro` (lib doc) generated 1 warning

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
@martin-g martin-g merged commit 5016cd5 into master Dec 16, 2022
@martin-g martin-g deleted the fix-minor-warnings-from-rust-1.66.0 branch December 16, 2022 07:54
martin-g added a commit that referenced this pull request Dec 16, 2022
* Fix lint error in IT test

error: casting to the same type is unnecessary (`i64` -> `i64`)
   --> avro/tests/io.rs:135:64
    |
135 |         let encoded = to_avro_datum(&Schema::Long, Value::Long(*number as i64)).unwrap();
    |                                                                ^^^^^^^^^^^^^^ help: try: `*number`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
    = note: `-D clippy::unnecessary-cast` implied by `-D clippy::all`

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Fix lint warning in rustdoc

warning: unclosed HTML tag `Value`
   --> avro/src/writer.rs:459:23
    |
459 |     /// Write the Into<Value> to the provided Write object. Returns a result with the number
    |                       ^^^^^^^
    |
    = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
help: try marking as source code
    |
459 |     /// Write the `Into<Value>` to the provided Write object. Returns a result with the number
    |                   +           +

warning: `apache-avro` (lib doc) generated 1 warning

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Remove a non-existing label that dependabot tries to set when creating a PR

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
(cherry picked from commit 5016cd5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant