Remove lifetime annotation in messages function

This commit is contained in:
LinkTed 2020-08-25 18:48:27 +02:00
parent b82f29d780
commit 4c929a00ee

View File

@ -564,7 +564,7 @@ impl<'a> SocketAncillary<'a> {
target_env = "uclibc",
))]
#[unstable(feature = "unix_socket_ancillary_data", issue = "none")]
pub fn messages(&'a self) -> Messages<'a> {
pub fn messages(&self) -> Messages<'_> {
Messages { buffer: &self.buffer[..self.length], current: None }
}