Skip to content

Commit

Permalink
fix: Relax lifetime bounds in endpoint as_str methods (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz authored May 28, 2024
1 parent 1d3a8ab commit 4418698
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commons/zenoh-protocol/src/core/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl Parameters {
pub struct Protocol<'a>(pub(super) &'a str);

impl<'a> Protocol<'a> {
pub fn as_str(&'a self) -> &'a str {
pub fn as_str(&self) -> &'a str {
self.0
}
}
Expand Down Expand Up @@ -205,7 +205,7 @@ impl fmt::Debug for ProtocolMut<'_> {
pub struct Address<'a>(pub(super) &'a str);

impl<'a> Address<'a> {
pub fn as_str(&'a self) -> &'a str {
pub fn as_str(&self) -> &'a str {
self.0
}
}
Expand Down Expand Up @@ -269,7 +269,7 @@ impl fmt::Debug for AddressMut<'_> {
pub struct Metadata<'a>(pub(super) &'a str);

impl<'a> Metadata<'a> {
pub fn as_str(&'a self) -> &'a str {
pub fn as_str(&self) -> &'a str {
self.0
}

Expand Down Expand Up @@ -386,7 +386,7 @@ impl fmt::Debug for MetadataMut<'_> {
pub struct Config<'a>(pub(super) &'a str);

impl<'a> Config<'a> {
pub fn as_str(&'a self) -> &'a str {
pub fn as_str(&self) -> &'a str {
self.0
}

Expand Down

0 comments on commit 4418698

Please sign in to comment.