Skip to content

Merge pull request #84 from dimpolo/error-serialize #104

Merge pull request #84 from dimpolo/error-serialize

Merge pull request #84 from dimpolo/error-serialize #104

GitHub Actions / clippy failed Jul 24, 2024 in 0s

clippy

19 errors

Details

Results

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

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check failure on line 190 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:190:26
    |
190 |             (true, $ixx::max_value() as $uxx + 1)
    |                          ^^^^^^^^^^^
...
281 |         serialize_signed!(self, 20, v, i64, u64)
    |         ---------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
190 |             (true, $ixx::MAX as $uxx + 1)
    |                          ~~~

Check failure on line 189 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:189:45
    |
189 |         let (signed, mut v) = if v == $ixx::min_value() {
    |                                             ^^^^^^^^^^^
...
281 |         serialize_signed!(self, 20, v, i64, u64)
    |         ---------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
189 |         let (signed, mut v) = if v == $ixx::MIN {
    |                                             ~~~

Check failure on line 190 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:190:26
    |
190 |             (true, $ixx::max_value() as $uxx + 1)
    |                          ^^^^^^^^^^^
...
276 |         serialize_signed!(self, 11, v, i32, u32)
    |         ---------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
190 |             (true, $ixx::MAX as $uxx + 1)
    |                          ~~~

Check failure on line 189 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:189:45
    |
189 |         let (signed, mut v) = if v == $ixx::min_value() {
    |                                             ^^^^^^^^^^^
...
276 |         serialize_signed!(self, 11, v, i32, u32)
    |         ---------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
189 |         let (signed, mut v) = if v == $ixx::MIN {
    |                                             ~~~

Check failure on line 190 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:190:26
    |
190 |             (true, $ixx::max_value() as $uxx + 1)
    |                          ^^^^^^^^^^^
...
271 |         serialize_signed!(self, 6, v, i16, u16)
    |         --------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
190 |             (true, $ixx::MAX as $uxx + 1)
    |                          ~~~

Check failure on line 189 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:189:45
    |
189 |         let (signed, mut v) = if v == $ixx::min_value() {
    |                                             ^^^^^^^^^^^
...
271 |         serialize_signed!(self, 6, v, i16, u16)
    |         --------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
189 |         let (signed, mut v) = if v == $ixx::MIN {
    |                                             ~~~

Check failure on line 190 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:190:26
    |
190 |             (true, $ixx::max_value() as $uxx + 1)
    |                          ^^^^^^^^^^^
...
266 |         serialize_signed!(self, 4, v, i8, u8)
    |         ------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
190 |             (true, $ixx::MAX as $uxx + 1)
    |                          ~~~

Check failure on line 189 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> src/ser/mod.rs:189:45
    |
189 |         let (signed, mut v) = if v == $ixx::min_value() {
    |                                             ^^^^^^^^^^^
...
266 |         serialize_signed!(self, 4, v, i8, u8)
    |         ------------------------------------- in this macro invocation
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: `#[deny(clippy::legacy_numeric_constants)]` implied by `#[deny(warnings)]`
    = note: this error originates in the macro `serialize_signed` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the associated constant instead
    |
189 |         let (signed, mut v) = if v == $ixx::MIN {
    |                                             ~~~

Check failure on line 444 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
   --> src/ser/mod.rs:444:20
    |
444 |     fn collect_str<T: ?Sized>(self, value: &T) -> Result<Self::Ok>
    |                    ^
445 |     where
446 |         T: fmt::Display,
    |         ^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 373 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
   --> src/ser/mod.rs:373:34
    |
373 |     fn serialize_newtype_variant<T: ?Sized>(
    |                                  ^
...
381 |         T: ser::Serialize,
    |         ^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 366 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
   --> src/ser/mod.rs:366:33
    |
366 |     fn serialize_newtype_struct<T: ?Sized>(self, _name: &'static str, value: &T) -> Result<Self::Ok>
    |                                 ^
367 |     where
368 |         T: ser::Serialize,
    |         ^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 342 in src/ser/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
   --> src/ser/mod.rs:342:23
    |
342 |     fn serialize_some<T: ?Sized>(self, value: &T) -> Result<Self::Ok>
    |                       ^
343 |     where
344 |         T: ser::Serialize,
    |         ^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 60 in src/ser/struct_.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
  --> src/ser/struct_.rs:60:24
   |
60 |     fn serialize_field<T: ?Sized>(&mut self, key: &'static str, value: &T) -> Result<()>
   |                        ^
61 |     where
62 |         T: ser::Serialize,
   |         ^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 20 in src/ser/struct_.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
  --> src/ser/struct_.rs:20:24
   |
20 |     fn serialize_field<T: ?Sized>(&mut self, key: &'static str, value: &T) -> Result<()>
   |                        ^
21 |     where
22 |         T: ser::Serialize,
   |         ^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 59 in src/ser/seq.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
  --> src/ser/seq.rs:59:24
   |
59 |     fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<()>
   |                        ^
60 |     where
61 |         T: ser::Serialize,
   |         ^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 43 in src/ser/seq.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
  --> src/ser/seq.rs:43:26
   |
43 |     fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<()>
   |                          ^
44 |     where
45 |         T: ser::Serialize,
   |         ^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 20 in src/ser/seq.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
  --> src/ser/seq.rs:20:26
   |
20 |     fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<()>
   |                          ^
21 |     where
22 |         T: ser::Serialize,
   |         ^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 38 in src/ser/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
  --> src/ser/map.rs:38:24
   |
38 |     fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<()>
   |                        ^
39 |     where
40 |         T: ser::Serialize,
   |         ^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations

Check failure on line 25 in src/ser/map.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

bound is defined in more than one place

error: bound is defined in more than one place
  --> src/ser/map.rs:25:22
   |
25 |     fn serialize_key<T: ?Sized>(&mut self, key: &T) -> Result<()>
   |                      ^
26 |     where
27 |         T: ser::Serialize,
   |         ^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
note: the lint level is defined here
  --> src/lib.rs:61:9
   |
61 | #![deny(warnings)]
   |         ^^^^^^^^
   = note: `#[deny(clippy::multiple_bound_locations)]` implied by `#[deny(warnings)]`