aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lib.rs
diff options
context:
space:
mode:
authorTill Höppner2016-09-15 23:50:45 +0200
committerTill Höppner2016-09-15 23:50:45 +0200
commite2aef9aa74302fb9b977a9c3f044d3dd4b680dec (patch)
tree7bf9594542178a360c264095fc3f378e578a09ac /lib/src/lib.rs
parent7bcd1b7d827517cf8df0fdc86a698a171a32f736 (diff)
downloadincludedir-e2aef9aa74302fb9b977a9c3f044d3dd4b680dec.tar.gz
includedir-e2aef9aa74302fb9b977a9c3f044d3dd4b680dec.tar.xz
includedir-e2aef9aa74302fb9b977a9c3f044d3dd4b680dec.zip
Fix minor style issues, remove unnecessary lifetime parameter
Diffstat (limited to 'lib/src/lib.rs')
-rw-r--r--lib/src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/src/lib.rs b/lib/src/lib.rs
index 57d3610..9b41cc6 100644
--- a/lib/src/lib.rs
+++ b/lib/src/lib.rs
@@ -39,7 +39,7 @@ impl Files {
/// Returns an iterator over all available file names. Does not
/// decompress any compressed data.
- pub fn file_names(&self) -> FileNames {
+ pub fn file_names(&'static self) -> FileNames {
FileNames { iter: self.files.keys() }
}
@@ -91,13 +91,13 @@ impl Files {
}
/// Iterates over the file names available for `Files` object.
-pub struct FileNames<'a> {
- /// Our internal iterator. We wrap this in a nice struct so our
- /// caller doesn't need to know the details.
- iter: phf::map::Keys<'a, &'static str, (Compression, &'static [u8])>,
+pub struct FileNames {
+ // Our internal iterator. We wrap this in a nice struct so our
+ // caller doesn't need to know the details.
+ iter: phf::map::Keys<'static, &'static str, (Compression, &'static [u8])>,
}
-impl<'a> Iterator for FileNames<'a> {
+impl Iterator for FileNames {
type Item = &'static str;
fn next(&mut self) -> Option<Self::Item> {