Release Rojo v7.6.0 (#1125)

This commit is contained in:
Micah
2025-10-10 19:17:55 -07:00
committed by GitHub
parent f3c423d77d
commit 441c469966
12 changed files with 7426 additions and 703 deletions

View File

@@ -62,7 +62,7 @@ impl AmbiguousValue {
match &property.data_type {
DataType::Enum(enum_name) => {
let database = rbx_reflection_database::get();
let database = rbx_reflection_database::get().unwrap();
let enum_descriptor = database.enums.get(enum_name).ok_or_else(|| {
format_err!("Unknown enum {}. This is a Rojo bug!", enum_name)
@@ -203,7 +203,7 @@ fn find_descriptor(
class_name: &str,
prop_name: &str,
) -> Option<&'static PropertyDescriptor<'static>> {
let database = rbx_reflection_database::get();
let database = rbx_reflection_database::get().unwrap();
let mut current_class_name = class_name;
loop {

View File

@@ -31,6 +31,7 @@ pub fn snapshot_lua(
script_type: ScriptType,
) -> anyhow::Result<Option<InstanceSnapshot>> {
let run_context_enums = &rbx_reflection_database::get()
.unwrap()
.enums
.get("RunContext")
.expect("Unable to get RunContext enums!")

View File

@@ -313,7 +313,7 @@ fn infer_class_name(name: &str, parent_class: Option<&str>) -> Option<Ustr> {
// Members of DataModel with names that match known services are
// probably supposed to be those services.
let descriptor = rbx_reflection_database::get().classes.get(name)?;
let descriptor = rbx_reflection_database::get().unwrap().classes.get(name)?;
if descriptor.tags.contains(&ClassTag::Service) {
return Some(ustr(name));