Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow access of inner Uuid for adapters #511

Merged
merged 3 commits into from Jan 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/adapter/mod.rs
Expand Up @@ -1001,14 +1001,14 @@ macro_rules! impl_adapter_from {

impl<$a> AsRef<Uuid> for $T<$a> {
#[inline]
fn as_ref(&self) -> &$a Uuid {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed lifetimes to support rust 1.34.0

fn as_ref(&self) -> &Uuid {
self.0
}
}

impl<$a> Borrow<Uuid> for $T<$a> {
#[inline]
fn borrow(&self) -> &$a Uuid {
fn borrow(&self) -> &Uuid {
self.0
}
}
Expand Down