Skip to content

Serde Protojson support (#166) #274

Serde Protojson support (#166)

Serde Protojson support (#166) #274

GitHub Actions / clippy succeeded Dec 28, 2023 in 0s

clippy

4 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 4
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 16 in src/prost/ibc.core.channel.v1.serde.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> src/prost/ibc.core.channel.v1.serde.rs:16:90
   |
16 |                     struct_ser.serialize_field("result", pbjson::private::base64::encode(&v).as_str())?;
   |                                                                                          ^^ help: change this to: `v`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 16 in src/prost/ibc.core.channel.v1.serde.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> src/prost/ibc.core.channel.v1.serde.rs:16:90
   |
16 |                     struct_ser.serialize_field("result", pbjson::private::base64::encode(&v).as_str())?;
   |                                                                                          ^^ help: change this to: `v`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 4831 in src/prost/google.protobuf.serde.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
    --> src/prost/google.protobuf.serde.rs:4831:87
     |
4831 |             struct_ser.serialize_field("stringValue", pbjson::private::base64::encode(&v).as_str())?;
     |                                                                                       ^^ help: change this to: `v`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
     = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default

Check warning on line 4831 in src/prost/google.protobuf.serde.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
    --> src/prost/google.protobuf.serde.rs:4831:87
     |
4831 |             struct_ser.serialize_field("stringValue", pbjson::private::base64::encode(&v).as_str())?;
     |                                                                                       ^^ help: change this to: `v`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
     = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default