From 57be162906d5ad19fb0f62ae4328044826a1fe48 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 9 Jul 2020 20:26:51 -0600 Subject: [PATCH] improvement: fix `cargo doc` invocation warning by making `no_main` conditional --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 504351c..156ddca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ #![deny(unsafe_code)] #![no_std] -#![no_main] +#![cfg_attr(not(doc), no_main)] //use panic_halt as _; use core::panic::PanicInfo;