Skip to content

Commit fabc977

Browse files
committed
Specify 'static lifetime when possible
1 parent ae98eb0 commit fabc977

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ impl Symbol {
8484
/// Each variant is represented by a tuple `(modifiers, value, deprecation)`.
8585
pub fn variants(
8686
&self,
87-
) -> impl Iterator<Item = (ModifierSet<&str>, &'static str, Option<&str>)> {
87+
) -> impl Iterator<Item = (ModifierSet<&'static str>, &'static str, Option<&'static str>)>
88+
{
8889
enum Variants {
8990
Single(std::iter::Once<&'static str>),
9091
Multi(

0 commit comments

Comments
 (0)