From 6c6bb67618d13fb64535a685246267fabe4232f9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 19 Jun 2017 14:57:15 +0800 Subject: [PATCH] libboard: fix compiler warning on not(has_i2c) --- artiq/firmware/libboard/i2c.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/firmware/libboard/i2c.rs b/artiq/firmware/libboard/i2c.rs index ef4f36051..6f3880645 100644 --- a/artiq/firmware/libboard/i2c.rs +++ b/artiq/firmware/libboard/i2c.rs @@ -1,3 +1,4 @@ +#[cfg(has_i2c)] use csr; #[cfg(has_i2c)]