minor cleanup

This commit is contained in:
mos 2024-07-27 17:57:09 +02:00
parent 2c2d2da645
commit 796cedbcac
1 changed files with 4 additions and 4 deletions

View File

@ -101,6 +101,10 @@ impl Writer {
self.buf.push(c); self.buf.push(c);
} }
fn write_op(&mut self, op: Op) {
self.write(Op::encode(op));
}
fn write_const(&mut self, c: u64) -> Result<()> { fn write_const(&mut self, c: u64) -> Result<()> {
let width = width!(c) as u8; let width = width!(c) as u8;
@ -125,10 +129,6 @@ impl Writer {
self.write(0x00); self.write(0x00);
} }
fn write_op(&mut self, op: Op) {
self.write(Op::encode(op));
}
fn parse_data_type(&mut self, node: &Node) -> Vec<String> { fn parse_data_type(&mut self, node: &Node) -> Vec<String> {
let mut bind_table = vec![]; let mut bind_table = vec![];