Skip to content

Commit

Permalink
Fix miscap'd todo macros
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaum committed Feb 10, 2024
1 parent 47435a1 commit a0f473d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions crates/compiler/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 => {
Expand Down Expand Up @@ -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 => {
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion crates/daemon/src/rpc_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Session for RpcSession {
}

fn shutdown(&self, _msg: Option<String>) -> Result<(), SessionError> {
TODO!()
todo!()
}

fn connection_name(&self, player: Objid) -> Result<String, SessionError> {
Expand Down
2 changes: 1 addition & 1 deletion crates/db/src/rdb/paging/tuple_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SlottedPage<'a>, TupleBoxError> {
Expand Down

0 comments on commit a0f473d

Please sign in to comment.