From 7ef2931dfcacaac411e9e50bfe9f5e958433366c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Fri, 13 Jan 2023 12:46:43 +0100 Subject: [PATCH] docs: use nightly clippy in vscode (#840) --- CONTRIBUTING.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4232d93fc..d3ec6bd09 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -90,6 +90,14 @@ If you are working in VSCode, we recommend you install the [rust-analyzer](https ```json "editor.formatOnSave": true, "rust-analyzer.rustfmt.extraArgs": ["+nightly"], +"rust-analyzer.checkOnSave.overrideCommand": [ + "cargo", + "+nightly", + "clippy", + "--all", + "--all-features", + "--message-format=json" +], "[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer" }