From c2d0a4487cb5b804a7f87e51f10a720cac0dfdee Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 8 Mar 2024 10:01:54 -0800 Subject: [PATCH] misc edits --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1df1b70..4fba0b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,7 @@ fn class_is_a(class: &str, superclass: &str) -> bool { return class_is_a(&class_super, superclass) } } - return false + false } fn recursive_collect_superclass(objects: &mut std::vec::Vec,dom: &rbx_dom_weak::WeakDom, instance: &rbx_dom_weak::Instance, superclass: &str){ for &referent in instance.children() { @@ -172,8 +172,8 @@ fn load_dom(input:&mut R)->AResult{ match &first_8[0..4]{ b"{ match &first_8[4..8]{ - b"lox!"=>return rbx_binary::from_reader(input).map_err(anyhow::Error::msg), - b"lox "=>return rbx_xml::from_reader(input,rbx_xml::DecodeOptions::default()).map_err(anyhow::Error::msg), + b"lox!"=>rbx_binary::from_reader(input).map_err(anyhow::Error::msg), + b"lox "=>rbx_xml::from_reader(input,rbx_xml::DecodeOptions::default()).map_err(anyhow::Error::msg), other=>Err(anyhow::Error::msg(format!("Unknown Roblox file type {:?}",other))), } },