Skip to content

Commit

Permalink
Changed the "items" constant to UPPER_CASE
Browse files Browse the repository at this point in the history
Changed the "items" constant to UPPER_CASE for silence the "rust-analyzer(non_upper_case_globals)" warning.
  • Loading branch information
Samet195 committed Aug 24, 2023
1 parent bc81e37 commit ea7be21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ fn embedded(
}

fn names() -> std::slice::Iter<'static, &'static str> {
const items: [&str; #array_len] = [#(#list_values),*];
items.iter()
const ITEMS: [&str; #array_len] = [#(#list_values),*];
ITEMS.iter()
}

/// Iterates over the file paths in the folder.
Expand Down

0 comments on commit ea7be21

Please sign in to comment.