mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
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:
parent
181a003ad2
commit
64d21dc6d6
5 changed files with 9 additions and 10 deletions
|
|
@ -203,7 +203,7 @@ impl AmbiguousValue {
|
|||
|
||||
(VariantType::String, AmbiguousValue::String(value)) => Ok(value.into()),
|
||||
(VariantType::Tags, AmbiguousValue::StringArray(value)) => {
|
||||
Ok(Tags::from(value).into())
|
||||
Ok(value.iter().map(String::as_str).collect::<Tags>().into())
|
||||
}
|
||||
(VariantType::Content, AmbiguousValue::String(value)) => {
|
||||
Ok(Content::from(value).into())
|
||||
|
|
@ -304,7 +304,7 @@ fn find_descriptor(
|
|||
return Some(descriptor);
|
||||
}
|
||||
|
||||
current_class_name = class.superclass.as_deref()?;
|
||||
current_class_name = class.superclass?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue