Skip to content

Commit a227099

Browse files
committed
Fix lifetime annotation for clippy warning
1 parent 9324b9e commit a227099

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl ShebangTuple {
116116
}
117117

118118
/// Iterate over the components (equivalent to Python's `for item in tuple`)
119-
pub fn iter(&self) -> std::slice::Iter<String> {
119+
pub fn iter(&self) -> std::slice::Iter<'_, String> {
120120
self.components.iter()
121121
}
122122

0 commit comments

Comments
 (0)