Browse Source

Add rustfmt.toml

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
Dave Tucker 2 years ago
parent
commit
f1c71916f7
3 changed files with 9 additions and 2 deletions
  1. 4 0
      ebpf/rustfmt.toml
  2. 4 0
      rustfmt.toml
  3. 1 2
      xtask/src/build_ebpf.rs

+ 4 - 0
ebpf/rustfmt.toml

@@ -0,0 +1,4 @@
+unstable_features = true
+reorder_imports = true
+imports_granularity = "Crate"
+

+ 4 - 0
rustfmt.toml

@@ -0,0 +1,4 @@
+unstable_features = true
+reorder_imports = true
+imports_granularity = "Crate"
+

+ 1 - 2
xtask/src/build_ebpf.rs

@@ -1,5 +1,4 @@
-use std::path::PathBuf;
-use std::process::Command;
+use std::{path::PathBuf, process::Command};
 
 use structopt::StructOpt;