Skip to content

Should I use skip_children or not? #6345

Answered by calebcartwright
ProfDoof asked this question in Q&A
Discussion options

You must be logged in to vote

If you're on nightly you can certainly use skip_children, and that's used commonly in situations where people/tools only want to format a single file.

You can fully ignore the 2.0 branch, there's not going to be a new major release of rustfmt (outside the entire Rust toolchain having a 2.0 release).

We may one day do a soft-deprecation of skip_children (e.g. instead of skip_children with a default of false we could have something like format_children with a default of true to avoid the double negative, but we also maintain automatic mappings for these types of cases)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ProfDoof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants