From f82dc74e384e3e3d01c00d706d55de9c38cbfc81 Mon Sep 17 00:00:00 2001 From: Nickolay Ponomarev Date: Tue, 23 Apr 2019 01:00:23 +0300 Subject: [PATCH] Mention that we use rustfmt for code formatting ...and add a `rustfmt.toml` as advised in https://www.reddit.com/r/rust/comments/9jl6a9/pro_tip_if_you_use_cargo_fmtrustfmt_use_a/ --- README.md | 2 ++ rustfmt.toml | 1 + 2 files changed, 3 insertions(+) create mode 100644 rustfmt.toml diff --git a/README.md b/README.md index 31a2eeee..a3e98003 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,5 @@ This is a work in progress but I started some notes on [writing a custom SQL par ## Contributing Contributors are welcome! Please see the [current issues](https://github.com/andygrove/sqlparser-rs/issues) and feel free to file more! + +Please run [cargo fmt](https://github.com/rust-lang/rustfmt#on-the-stable-toolchain) to ensure the code is properly formatted. diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..943db387 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +# We use rustfmt's default settings to format the source code