From 331d5ea724c81031fd20d4cc1742d5ed339a05c4 Mon Sep 17 00:00:00 2001 From: Ben S Date: Sat, 11 Jun 2016 13:35:31 +0100 Subject: [PATCH] Rename underscored lifetimes See https://github.com/rust-lang/rfcs/pull/1177 --- src/info/filetype.rs | 2 +- src/info/sources.rs | 2 +- src/options/filter.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/info/filetype.rs b/src/info/filetype.rs index ef2e347..74c1717 100644 --- a/src/info/filetype.rs +++ b/src/info/filetype.rs @@ -7,7 +7,7 @@ use fs::File; -impl<'_> File<'_> { +impl<'a> File<'a> { /// An “immediate” file is something that can be run or activated somehow /// in order to kick off the build of a project. It’s usually only present diff --git a/src/info/sources.rs b/src/info/sources.rs index e4b5e0c..804bd3d 100644 --- a/src/info/sources.rs +++ b/src/info/sources.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; use fs::File; -impl<'_> File<'_> { +impl<'a> File<'a> { /// For this file, return a vector of alternate file paths that, if any of /// them exist, mean that *this* file should be coloured as “compiled”. diff --git a/src/options/filter.rs b/src/options/filter.rs index 0e30e6b..2c86a1f 100644 --- a/src/options/filter.rs +++ b/src/options/filter.rs @@ -86,8 +86,8 @@ impl FileFilter { } /// Sort the files in the given vector based on the sort field option. - pub fn sort_files<'_, F>(&self, files: &mut Vec) - where F: AsRef> { + pub fn sort_files<'a, F>(&self, files: &mut Vec) + where F: AsRef> { files.sort_by(|a, b| self.compare_files(a.as_ref(), b.as_ref()));