From cbb584d9d95b334f8492282b78b5c50d305a0d15 Mon Sep 17 00:00:00 2001 From: Chris Patuzzo Date: Sat, 17 Mar 2018 15:39:23 +0000 Subject: [PATCH] Remove unnecessary lifetime for OplogBuilder::new > If there is exactly one input lifetime position (elided or not), that > lifetime is assigned to all elided output lifetimes. (https://doc.rust-lang.org/beta/nomicon/lifetime-elision.html) --- src/oplog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oplog.rs b/src/oplog.rs index 4bdf7623..32110368 100644 --- a/src/oplog.rs +++ b/src/oplog.rs @@ -93,7 +93,7 @@ impl<'a> OplogBuilder<'a> { /// } /// # } /// ``` - pub fn new(client: &'a Client) -> OplogBuilder<'a> { + pub fn new(client: &Client) -> OplogBuilder { OplogBuilder { client: client, filter: None,