forked from tock/tock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrustfmt.toml
16 lines (13 loc) · 817 Bytes
/
rustfmt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Licensed under the Apache License, Version 2.0 or the MIT License.
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Copyright Tock Contributors 2022.
# Tock uses rustfmt's default configuration for formatting style.
# Configure rustfmt to error when it cannot format a file. This helps avoid
# issues where rust code is silently not formatted because rustfmt encounters
# something it cannot format. Typically, this happens when a comment is inserted
# somewhere that rustfmt doesn't handle.
error_on_unformatted = true
# This configuration file is important so that when rustfmt is run within this
# repository, it does not search parent directories for a rustfmt.toml file.
# This allows projects with their own rustfmt.toml file to include tock as a
# submodule without changing the behavior of `make prepush`.