From a0f473da4b60ba96c3ddf9829c156dfaa3fe4db5 Mon Sep 17 00:00:00 2001 From: Ryan Daum Date: Fri, 9 Feb 2024 22:07:21 -0500 Subject: [PATCH] Fix miscap'd todo macros --- crates/compiler/src/parse.rs | 8 ++++---- crates/daemon/src/rpc_session.rs | 2 +- crates/db/src/rdb/paging/tuple_box.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/compiler/src/parse.rs b/crates/compiler/src/parse.rs index 9c289104..0f8727de 100644 --- a/crates/compiler/src/parse.rs +++ b/crates/compiler/src/parse.rs @@ -291,7 +291,7 @@ fn parse_expr( let expr = parse_expr(names.clone(), inner.next().unwrap().into_inner())?; Ok(expr) } - _ => TODO!("Unimplemented primary: {:?}", primary.as_rule()), + _ => todo!("Unimplemented primary: {:?}", primary.as_rule()), }) .map_infix(|lhs, op, rhs| match op.as_rule() { Rule::add => Ok(Expr::Binary( @@ -362,7 +362,7 @@ fn parse_expr( Box::new(lhs?), Box::new(rhs.unwrap()), )), - _ => TODO!("Unimplemented infix: {:?}", op.as_rule()), + _ => todo!("Unimplemented infix: {:?}", op.as_rule()), }) .map_prefix(|op, rhs| match op.as_rule() { Rule::scatter_assign => { @@ -412,7 +412,7 @@ fn parse_expr( } Rule::not => Ok(Expr::Unary(UnaryOp::Not, Box::new(rhs?))), Rule::neg => Ok(Expr::Unary(UnaryOp::Neg, Box::new(rhs?))), - _ => TODO!("Unimplemented prefix: {:?}", op.as_rule()), + _ => todo!("Unimplemented prefix: {:?}", op.as_rule()), }) .map_postfix(|lhs, op| match op.as_rule() { Rule::verb_call => { @@ -486,7 +486,7 @@ fn parse_expr( alternative: Box::new(false_expr), }) } - _ => TODO!("Unimplemented postfix: {:?}", op.as_rule()), + _ => todo!("Unimplemented postfix: {:?}", op.as_rule()), }) .parse(pairs); } diff --git a/crates/daemon/src/rpc_session.rs b/crates/daemon/src/rpc_session.rs index 7c02f065..20996c27 100644 --- a/crates/daemon/src/rpc_session.rs +++ b/crates/daemon/src/rpc_session.rs @@ -98,7 +98,7 @@ impl Session for RpcSession { } fn shutdown(&self, _msg: Option) -> Result<(), SessionError> { - TODO!() + todo!() } fn connection_name(&self, player: Objid) -> Result { diff --git a/crates/db/src/rdb/paging/tuple_box.rs b/crates/db/src/rdb/paging/tuple_box.rs index dbc87e38..fe421f9d 100644 --- a/crates/db/src/rdb/paging/tuple_box.rs +++ b/crates/db/src/rdb/paging/tuple_box.rs @@ -335,7 +335,7 @@ impl Inner { // 3. Mark the tuple as paged with the new address. // tuple_ptr.mark_paged_in(self.pager.resolve_ptr(id.page)?.0); - TODO!("page in"); + todo!("page in"); } fn page_for<'a>(&self, page_num: PageId) -> Result, TupleBoxError> {