Skip to content

Commit

Permalink
Merge pull request #101 from konsumlamm/master
Browse files Browse the repository at this point in the history
add repr(transparent) to Qey
  • Loading branch information
Gankra authored Jan 8, 2021
2 parents 457a72a + 4ffcc9f commit 5adedcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl<K: Eq> Eq for KeyRef<K> {}
// due to conflicting implementations of `Borrow`. The layout of `&Qey<Q>` must be identical to
// `&Q` in order to support transmuting in the `Qey::from_ref` method.
#[derive(Hash, PartialEq, Eq)]
#[repr(transparent)]
struct Qey<Q: ?Sized>(Q);

impl<Q: ?Sized> Qey<Q> {
Expand Down

0 comments on commit 5adedcd

Please sign in to comment.