Skip to content

Commit

Permalink
🐞 fix(roblox_incorrect_roact_usage): Clippy error
Browse files Browse the repository at this point in the history
Fixed a Clippy error
  • Loading branch information
Midnightific committed Feb 24, 2024
1 parent 75a75dc commit cdfb779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selene-lib/src/lints/roblox_incorrect_roact_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use if_chain::if_chain;
pub struct IncorrectRoactUsageLint;

// Assumes string includes quotes at start and end
fn is_lua_valid_table_key_identifier(string: &String) -> bool {
fn is_lua_valid_table_key_identifier(string: &str) -> bool {
// Valid identifier cannot start with numbers
let first_char = string.chars().nth(1).unwrap();
if !first_char.is_alphabetic() && first_char != '_' {
Expand Down

0 comments on commit cdfb779

Please sign in to comment.