From ea60c303fe7c238a1b4354d797d4a874fff23b93 Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Wed, 11 Sep 2019 10:00:37 +0200 Subject: [PATCH] Enable rustfmt and copy config from the rkv project Signed-off-by: Victor Porof --- .rustfmt.toml | 5 ++++- lmdb-sys/.rustfmt.toml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 lmdb-sys/.rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml index c7ad93b..b7cda23 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1 +1,4 @@ -disable_all_formatting = true +imports_layout = "Vertical" +max_width = 120 +match_block_trailing_comma = true +use_small_heuristics = "Off" \ No newline at end of file diff --git a/lmdb-sys/.rustfmt.toml b/lmdb-sys/.rustfmt.toml new file mode 100644 index 0000000..fc441bb --- /dev/null +++ b/lmdb-sys/.rustfmt.toml @@ -0,0 +1,3 @@ +ignore = [ + "src/bindings.rs" +] \ No newline at end of file