2024-05-31 clippy::multiple_bound_locations
定例の dependabot から今日の clippy 。
https://github.com/bouzuya/serde-firestore-value/actions/runs/9318323672/job/25650419402#step:5:162
error: bound is defined in more than one place
--> src/ser/firestore_array_value_serializer.rs:25:26
|
25 | fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Self::Error>
| ^
26 | where
27 | T: serde::Serialize,
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `-D clippy::multiple-bound-locations` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::multiple_bound_locations)]`
https://rust-lang.github.io/rust-clippy/master/#/multiple_bound_locations
Rust 1.78.0 から追加された lint。 clippy::multiple_bound_locations
複数箇所でトレイト境界を指定すると怒られる。
今日のコミット。