Skip to content

Commit

Permalink
Rename underscored lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
ogham committed Jun 11, 2016
1 parent 50c0c36 commit 331d5ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/info/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/info/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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”.
Expand Down
4 changes: 2 additions & 2 deletions src/options/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<F>)
where F: AsRef<File<'_>> {
pub fn sort_files<'a, F>(&self, files: &mut Vec<F>)
where F: AsRef<File<'a>> {

files.sort_by(|a, b| self.compare_files(a.as_ref(), b.as_ref()));

Expand Down

0 comments on commit 331d5ea

Please sign in to comment.