This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve multiple_bound_locations clippy lint
warning: bound is defined in more than one place --> src/assert.rs:67:26 | 67 | pub fn assert_ser_tokens<T: ?Sized>(value: &T, tokens: &[Token]) | ^ 68 | where 69 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: `#[warn(clippy::multiple_bound_locations)]` on by default warning: bound is defined in more than one place --> src/assert.rs:125:32 | 125 | pub fn assert_ser_tokens_error<T: ?Sized>(value: &T, tokens: &[Token], error: &str) | ^ 126 | where 127 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/configure.rs:234:41 | 234 | fn serialize_newtype_struct<T: ?Sized>( | ^ ... 240 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:245:42 | 245 | fn serialize_newtype_variant<T: ?Sized>( | ^ ... 253 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:263:31 | 263 | fn serialize_some<T: ?Sized>(self, value: &T) -> Result<S::Ok, Self::Error> | ^ 264 | where 265 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:329:34 | 329 | fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 330 | where 331 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:346:34 | 346 | fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 347 | where 348 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:363:32 | 363 | fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 364 | where 365 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:380:32 | 380 | fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 381 | where 382 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:397:30 | 397 | fn serialize_key<T: ?Sized>(&mut self, key: &T) -> Result<(), S::Error> | ^ 398 | where 399 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:403:32 | 403 | fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 404 | where 405 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:409:32 | 409 | fn serialize_entry<K: ?Sized, V: ?Sized>( | ^ ... 415 | K: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:409:43 | 409 | fn serialize_entry<K: ?Sized, V: ?Sized>( | ^ ... 416 | V: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:431:32 | 431 | fn serialize_field<T: ?Sized>( | ^ ... 437 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:452:32 | 452 | fn serialize_field<T: ?Sized>( | ^ ... 458 | T: Serialize, | ^ ... 469 | impl_serializer!(Readable, true); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:234:41 | 234 | fn serialize_newtype_struct<T: ?Sized>( | ^ ... 240 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:245:42 | 245 | fn serialize_newtype_variant<T: ?Sized>( | ^ ... 253 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:263:31 | 263 | fn serialize_some<T: ?Sized>(self, value: &T) -> Result<S::Ok, Self::Error> | ^ 264 | where 265 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:329:34 | 329 | fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 330 | where 331 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:346:34 | 346 | fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 347 | where 348 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:363:32 | 363 | fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 364 | where 365 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:380:32 | 380 | fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 381 | where 382 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:397:30 | 397 | fn serialize_key<T: ?Sized>(&mut self, key: &T) -> Result<(), S::Error> | ^ 398 | where 399 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:403:32 | 403 | fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<(), S::Error> | ^ 404 | where 405 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:409:32 | 409 | fn serialize_entry<K: ?Sized, V: ?Sized>( | ^ ... 415 | K: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:409:43 | 409 | fn serialize_entry<K: ?Sized, V: ?Sized>( | ^ ... 416 | V: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:431:32 | 431 | fn serialize_field<T: ?Sized>( | ^ ... 437 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/configure.rs:452:32 | 452 | fn serialize_field<T: ?Sized>( | ^ ... 458 | T: Serialize, | ^ ... 470 | impl_serializer!(Compact, false); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: this warning originates in the macro `impl_serializer` (in Nightly builds, run with -Z macro-backtrace for more info) warning: bound is defined in more than one place --> src/ser.rs:191:33 | 191 | fn serialize_newtype_struct<T: ?Sized>(self, name: &'static str, value: &T) -> Result<(), Error> | ^ 192 | where 193 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:199:34 | 199 | fn serialize_newtype_variant<T: ?Sized>( | ^ ... 207 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:223:23 | 223 | fn serialize_some<T: ?Sized>(self, value: &T) -> Result<(), Error> | ^ 224 | where 225 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:323:26 | 323 | fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> | ^ 324 | where 325 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:340:26 | 340 | fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> | ^ 341 | where 342 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:357:24 | 357 | fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> | ^ 358 | where 359 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:374:24 | 374 | fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> | ^ 375 | where 376 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:395:22 | 395 | fn serialize_key<T: ?Sized>(&mut self, key: &T) -> Result<(), Self::Error> | ^ 396 | where 397 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:402:24 | 402 | fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> | ^ 403 | where 404 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:419:24 | 419 | fn serialize_field<T: ?Sized>( | ^ ... 425 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations warning: bound is defined in more than one place --> src/ser.rs:441:24 | 441 | fn serialize_field<T: ?Sized>( | ^ ... 447 | T: Serialize, | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
- Loading branch information