diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 00:34:28 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-04 00:34:28 +0100 |
| commit | d73902aeb3bb8441378208f8a921f4084ce46375 (patch) | |
| tree | da497a20304c0b08624e442f5dd21f93a66ae65f | |
| parent | 6a54f01c55b98932b461809ef35b0f0b7c72f4f0 (diff) | |
Run cargo fmt
| -rw-r--r-- | oryxc/src/parser.rs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/oryxc/src/parser.rs b/oryxc/src/parser.rs index 8f4ebc1..2b42a8f 100644 --- a/oryxc/src/parser.rs +++ b/oryxc/src/parser.rs @@ -20,7 +20,8 @@ use crate::size; const MAX_PREC: i64 = 6; -/* Remember to edit the cases in Parser.node_span_1() when editing this list! */ +/* Remember to edit the cases in Parser.node_span_1() when editing + * this list! */ #[repr(u8)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum AstType { @@ -173,14 +174,14 @@ impl<'a> Parser<'a> { }, AstType::Dereference => (self.node_span_1(_0).0, node), AstType::FunProto => { - let nargs = self.extra_data[_0 as usize]; - let nrets = self.extra_data[_1 as usize]; - let rhs = match (nargs, nrets) { - (0, 0) => node, - (_, 0) => self.extra_data[(_0 + nargs) as usize], - (_, _) => self.extra_data[(_1 + nrets) as usize], - }; - (node, self.node_span_1(rhs).1) + let nargs = self.extra_data[_0 as usize]; + let nrets = self.extra_data[_1 as usize]; + let rhs = match (nargs, nrets) { + (0, 0) => node, + (_, 0) => self.extra_data[(_0 + nargs) as usize], + (_, _) => self.extra_data[(_1 + nrets) as usize], + }; + (node, self.node_span_1(rhs).1) }, AstType::Identifier => (node, node), AstType::MultiDefBind => { |