From cdfb77945d55be35b3ad05dec964a67f066660cd Mon Sep 17 00:00:00 2001 From: Griffin Castles Date: Sat, 24 Feb 2024 10:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(roblox=5Fincorrect=5Froact?= =?UTF-8?q?=5Fusage):=20Clippy=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed a Clippy error --- selene-lib/src/lints/roblox_incorrect_roact_usage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selene-lib/src/lints/roblox_incorrect_roact_usage.rs b/selene-lib/src/lints/roblox_incorrect_roact_usage.rs index 94c02362..3917df9f 100644 --- a/selene-lib/src/lints/roblox_incorrect_roact_usage.rs +++ b/selene-lib/src/lints/roblox_incorrect_roact_usage.rs @@ -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 != '_' {