summaryrefslogtreecommitdiffstats
path: root/vendor/pest/src/iterators/pairs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/pest/src/iterators/pairs.rs')
-rw-r--r--vendor/pest/src/iterators/pairs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/pest/src/iterators/pairs.rs b/vendor/pest/src/iterators/pairs.rs
index 654b7dade..e478cebf2 100644
--- a/vendor/pest/src/iterators/pairs.rs
+++ b/vendor/pest/src/iterators/pairs.rs
@@ -43,7 +43,7 @@ pub fn new<R: RuleType>(
input: &str,
start: usize,
end: usize,
-) -> Pairs<R> {
+) -> Pairs<'_, R> {
Pairs {
queue,
input,
@@ -246,13 +246,13 @@ impl<'i, R: RuleType> DoubleEndedIterator for Pairs<'i, R> {
}
impl<'i, R: RuleType> fmt::Debug for Pairs<'i, R> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_list().entries(self.clone()).finish()
}
}
impl<'i, R: RuleType> fmt::Display for Pairs<'i, R> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"[{}]",