Skip to content

Commit

Permalink
Update cmd/crates/soroban-spec-typescript/src/lib.rs
Browse files Browse the repository at this point in the history
readability

Co-authored-by: Willem Wyndham <[email protected]>
  • Loading branch information
BlaineHeffron and willemneal committed Jun 5, 2024
1 parent 8ff63ec commit 8976b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crates/soroban-spec-typescript/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub fn generate(spec: &[ScSpecEntry]) -> String {
// Filter out function entries with names that start with "__"
let filtered_collected: Vec<_> = collected
.into_iter()
.filter(|entry| !matches!(entry, Entry::Function { name, .. } if name.starts_with("__")))
.filter(|entry| matches!(entry, Entry::Function { name, .. } if !name.starts_with("__")))
.collect();
let (fns, other): (Vec<_>, Vec<_>) = filtered_collected
.into_iter()
Expand Down

0 comments on commit 8976b6c

Please sign in to comment.