From 4883b582f1cc23420213035069007c446adbfb83 Mon Sep 17 00:00:00 2001 From: Tpt Date: Wed, 3 Aug 2022 09:10:16 +0200 Subject: [PATCH] Improves Rustfmt and Clippy configuration --- clippy.toml | 2 +- rustfmt.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 rustfmt.toml diff --git a/clippy.toml b/clippy.toml index 13d3926a..302f26e0 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,4 +1,4 @@ -avoid-breaking-exported-api = false +avoid-breaking-exported-api = true cognitive-complexity-threshold = 50 too-many-arguments-threshold = 10 type-complexity-threshold = 500 \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..d51f7320 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,3 @@ +newline_style = "Unix" +use_field_init_shorthand = true +use_try_shorthand = true \ No newline at end of file