From a1a32b62c097689829dd96d828cc3c5e7a4a79e6 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 17 Dec 2019 09:52:02 +0000 Subject: Allow missing safety documentation for unsafe functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Our main function is unsafe as it uses the entry attribute. clippy requires a Safety section in the doc comment of public unsafe functions, but as we don’t have any documentation yet, we disable the clippy::missing_safety_doc lint. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 99f1ec6..7c9ee9c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ #![no_std] #![no_main] +#![allow(clippy::missing_safety_doc)] extern crate panic_halt; -- cgit v1.2.1