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))), } },