From 63a4ae048540a6232c3c7c186e9d027081940382 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 8 Jun 2020 12:25:10 -0700 Subject: [PATCH] Silence warnings on 'extern crate proc_macro'. --- contrib/codegen/src/lib.rs | 1 + core/codegen/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/codegen/src/lib.rs b/contrib/codegen/src/lib.rs index 512267b9..57b85bcd 100644 --- a/contrib/codegen/src/lib.rs +++ b/contrib/codegen/src/lib.rs @@ -26,6 +26,7 @@ //! DATABASE_NAME := (string literal) //! +#[allow(unused_extern_crates)] extern crate proc_macro; #[allow(unused_imports)] diff --git a/core/codegen/src/lib.rs b/core/codegen/src/lib.rs index e2cb6e99..07132a21 100644 --- a/core/codegen/src/lib.rs +++ b/core/codegen/src/lib.rs @@ -59,7 +59,7 @@ //! ``` #[macro_use] extern crate quote; -extern crate proc_macro; +#[allow(unused_extern_crates)] extern crate proc_macro; use rocket_http as http;