Update submodule reference and refactor match statements for improved clarity

- Updated the rbx-dom submodule to the latest commit.
- Refactored match statements in resolution.rs, sourcemap.rs, project.rs, and api.rs to dereference names directly for better readability.
This commit is contained in:
Joe 2026-02-10 00:33:47 -06:00
parent 181a003ad2
commit 64d21dc6d6
5 changed files with 9 additions and 10 deletions

View file

@ -2108,7 +2108,7 @@ impl ApiService {
// Find which RunContext this value corresponds to
for (name, &enum_value) in enums {
if enum_value == value {
return match name.as_ref() {
return match *name {
"Client" => "client",
"Server" => "server",
"Legacy" => "legacy",
@ -3711,7 +3711,7 @@ mod tests {
if let (Some(enums), Some(value)) = (run_context_enums, run_context_value) {
for (name, &enum_value) in enums {
if enum_value == value {
return match name.as_ref() {
return match *name {
"Client" => "client",
"Server" => "server",
"Legacy" => "legacy",