aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/tree
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-12-09 15:13:14 +0000
committerUbuntu <github@matdoes.dev>2022-12-09 15:13:14 +0000
commitca00dbab12ab7de0bba462b9814b9f491b23da69 (patch)
tree560bd906d9ca1fcb822290286e9bf5990826163a /azalea-brigadier/src/tree
parentf0097612473d20ebac21e8ae5eba32bf32c2fe42 (diff)
parent70e2dfed16da8d5130460ea15b47701e622f4a9f (diff)
downloadazalea-drasl-ca00dbab12ab7de0bba462b9814b9f491b23da69.tar.xz
Merge branch 'main' of https://github.com/mat-1/azalea into main
Diffstat (limited to 'azalea-brigadier/src/tree')
-rwxr-xr-xazalea-brigadier/src/tree/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-brigadier/src/tree/mod.rs b/azalea-brigadier/src/tree/mod.rs
index ef2573b9..59b79b5d 100755
--- a/azalea-brigadier/src/tree/mod.rs
+++ b/azalea-brigadier/src/tree/mod.rs
@@ -45,14 +45,16 @@ impl<S> Clone for CommandNode<S> {
}
impl<S> CommandNode<S> {
- /// Gets the literal, or panics. You should use match if you're not certain about the type.
+ /// Gets the literal, or panics. You should use match if you're not certain
+ /// about the type.
pub fn literal(&self) -> &Literal {
match self.value {
ArgumentBuilderType::Literal(ref literal) => literal,
_ => panic!("CommandNode::literal() called on non-literal node"),
}
}
- /// Gets the argument, or panics. You should use match if you're not certain about the type.
+ /// Gets the argument, or panics. You should use match if you're not certain
+ /// about the type.
pub fn argument(&self) -> &Argument {
match self.value {
ArgumentBuilderType::Argument(ref argument) => argument,