From 0cb9d2c3987fae3119f59b7c3ef74f9596f355e2 Mon Sep 17 00:00:00 2001 From: Georges Racinet Date: Sat, 20 Feb 2016 18:41:23 +0100 Subject: Explicit lifetime has become useless --- src/vobject/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs index b66e73f..04ce8e3 100644 --- a/src/vobject/lib.rs +++ b/src/vobject/lib.rs @@ -231,7 +231,7 @@ impl<'s> Parser<'s> { // implementation detail : instead of pushing char after char, we // do it by the biggest contiguous slices possible, because I believe it // to be more efficient (less checks for reallocation etc). - fn consume_while<'a, F: Fn(char) -> bool>(&'a mut self, test: F) -> String { + fn consume_while bool>(&mut self, test: F) -> String { let mut sl_start_pos = self.pos; let mut res = String::new(); while !self.eof() { -- cgit v1.2.3