Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Jun 23, 2021
1 parent bae38bf commit f3b9dc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/yoke/src/trait_hack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
//! for<'a> <Y as Yokeable<'a>>::Output: MyTrait,
//! {}
//!
//! fn main() {
//! fn example() {
//! let y = Yoke::<MyStruct, ()>::new_always_owned(MyStruct {});
//! // error[E0277]: the trait bound `for<'a> <MyStruct as Yokeable<'a>>::Output: MyTrait` is not satisfied
//! let _: &dyn MyTrait = &y;
Expand Down Expand Up @@ -124,7 +124,7 @@
//! }
//! }
//!
//! fn main() {
//! fn example() {
//! let y = Yoke::<MyStruct, ()>::new_always_owned(MyStruct(42));
//! let _: &dyn MyTrait = &y;
//! }
Expand Down Expand Up @@ -189,7 +189,7 @@
//! }
//! }
//!
//! fn main() {
//! fn example() {
//! let _ = Yoke::<MyStruct, Rc<u32>>::demo(42);
//! }
//! ```
Expand All @@ -215,6 +215,6 @@ where
where
D: serde::de::Deserializer<'de>,
{
T::deserialize(deserializer).map(|v| YokeTraitHack(v))
T::deserialize(deserializer).map(YokeTraitHack)
}
}

0 comments on commit f3b9dc6

Please sign in to comment.