Skip to content

Commit 3342dd8

Browse files
authored
Merge pull request #5899 from obycode/rustfmt-settings
feat: use .rustfmt.toml for formatting options
2 parents a86c232 + 40961ab commit 3342dd8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.cargo/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ clippy-stacks = "clippy -p libstackerdb -p stacks-signer -p pox-locking -p clari
1212
#[target.x86_64-unknown-linux-gnu]
1313
#linker = "/usr/bin/clang"
1414
#rustflags = ["-Clink-arg=-fuse-ld=lld", "-Clink-arg=-Wl,--no-rosegment"]
15-

.rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
group_imports = "StdExternalCrate"
2+
imports_granularity = "Module"

.vscode/settings.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"lldb.adapterType": "native",
3-
"lldb.launch.sourceLanguages": ["rust"],
2+
"lldb.launch.sourceLanguages": [
3+
"rust"
4+
],
45
"rust-analyzer.runnables.extraEnv": {
56
"BITCOIND_TEST": "1"
6-
}
7+
},
8+
"rust-analyzer.rustfmt.extraArgs": [
9+
"+nightly"
10+
]
711
}

0 commit comments

Comments
 (0)