-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrustfmt.toml
37 lines (26 loc) · 1.06 KB
/
rustfmt.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright © The libcoap-rs Contributors, all rights reserved.
# This file is part of the libcoap-rs project, see the README file for
# general information on this project and the NOTICE.md and LICENSE files
# for information regarding copyright ownership and terms of use.
#
# rustfmt.toml for libcoap-rs
unstable_features = true
edition = "2021"
# Maximum width of each line
max_width = 120
# Use field initialize shorthand if possible.
use_field_init_shorthand = true
# Put a trailing comma after a block based match arm (non-block arms are not affected)
match_block_trailing_comma = true
# Error if unable to get all lines within max_width
error_on_line_overflow = false
# Merge multiple imports into a single nested import.
imports_granularity = "Crate"
reorder_imports = true
group_imports = "StdExternalCrate"
# Reorder impl items. type and const are put first, then macros and methods.
reorder_impl_items = true
# Determines if + or = are wrapped in spaces in the punctuation of types
type_punctuation_density = "Wide"