Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jul 29, 2024
1 parent 2e03234 commit 709495f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ harness = false

[dependencies]
anyhow = "1.0.64"
deno_ast = { version = "0.40.0", features = ["view"] }
deno_ast = { version = "0.41.0", features = ["view"] }
dprint-core = { version = "0.66.2", features = ["formatting"] }
dprint-core-macros = "0.1.0"
percent-encoding = "2.3.1"
Expand All @@ -43,6 +43,3 @@ serde_json = { version = "1.0", optional = true }
dprint-development = "0.10.1"
pretty_assertions = "1.3.0"
serde_json = { version = "1.0" }

[patch.crates-io]
deno_ast = { path = "../deno_ast" }
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.77.2"
channel = "1.80.0"
components = ["clippy"]
2 changes: 1 addition & 1 deletion src/generation/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4984,7 +4984,7 @@ fn gen_if_stmt<'a>(node: &IfStmt<'a>, context: &mut Context<'a>) -> PrintItems {
let cons_range = cons.range();
let result = gen_header_with_conditional_brace_body(
GenHeaderWithConditionalBraceBodyOptions {
body_node: cons.into(),
body_node: cons,
generated_header: {
let mut items = PrintItems::new();
items.push_sc(sc!("if"));
Expand Down
4 changes: 1 addition & 3 deletions src/generation/swc/flatten_member_like_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ use crate::generation::generate_types::CallOrOptCallExpr;
use super::super::node_helpers;

pub struct FlattenedMemberLikeExpr<'a> {
pub node: Node<'a>,

pub nodes: Vec<MemberLikeExprItem<'a>>,
}

Expand Down Expand Up @@ -74,7 +72,7 @@ pub fn flatten_member_like_expr<'a>(node: Node<'a>, program: Program<'a>) -> Fla
let mut nodes = Vec::new();
push_descendant_nodes(node, &mut nodes, program);

FlattenedMemberLikeExpr { node, nodes }
FlattenedMemberLikeExpr { nodes }
}

fn push_descendant_nodes<'a>(node: Node<'a>, nodes: &mut Vec<MemberLikeExprItem<'a>>, program: Program<'a>) {
Expand Down

0 comments on commit 709495f

Please sign in to comment.