| # Fuchsia Format Style | |
| # last reviewed: Jan 29, 2019 | |
| # While Fuchsia mostly uses 2021 edition, allow use of 2024 features. | |
| edition = "2024" | |
| # The "Default" setting has a heuristic which splits lines too aggresively. | |
| # We are willing to revisit this setting in future versions of rustfmt. | |
| # Bugs: | |
| # * https://github.com/rust-lang/rustfmt/issues/3119 | |
| # * https://github.com/rust-lang/rustfmt/issues/3120 | |
| use_small_heuristics = "Max" | |
| # Prevent carriage returns | |
| newline_style = "Unix" | |
| # Format imports. See fxbug.dev/340943530#comment2 for discussion. | |
| imports_granularity = "Module" |