From 3fa98701d573e7a5d5c708ad149230a7d8327b44 Mon Sep 17 00:00:00 2001 From: Lutsai Aleksandr Date: Mon, 16 Dec 2024 21:51:34 +0300 Subject: [PATCH] add formatter --- Cargo.toml | 11 +++++++++++ rustfmt.toml | 1 + 2 files changed, 12 insertions(+) create mode 100644 rustfmt.toml diff --git a/Cargo.toml b/Cargo.toml index e1a4a30..ab8c86c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,14 @@ sys-mount = "3.0.1" tokio = {version = "1.42.0", features = ["full"]} tokio-stream = "0.1.17" udisks2 = "0.2.0" + +[lints.clippy] +pedantic = { level = "warn", priority = -1 } +must_use_candidate = { level = "allow" } +expect_used = { level = "allow" } +unwrap_used = { level = "warn" } +panic = { level = "allow" } +doc_markdown = { level = "allow" } + +[profile.release] +strip = true \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..0fb71e6 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +edition = "2024" \ No newline at end of file