From ae4b1e85e669bc882d158509ef1eda46c6b2a72e Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 30 May 2025 19:36:59 -0800 Subject: fix clippy issues and improve formatting everywhere --- azalea-brigadier/src/context/context_chain.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'azalea-brigadier/src/context/context_chain.rs') diff --git a/azalea-brigadier/src/context/context_chain.rs b/azalea-brigadier/src/context/context_chain.rs index 74fe6e01..afafe957 100644 --- a/azalea-brigadier/src/context/context_chain.rs +++ b/azalea-brigadier/src/context/context_chain.rs @@ -28,9 +28,7 @@ impl ContextChain { let child = current.child.clone(); let Some(child) = child else { // Last entry must be executable command - if current.command.is_none() { - return None; - } + current.command.as_ref()?; return Some(ContextChain::new(modifiers, current)); }; -- cgit v1.2.3