From cad19c9cabb30f2ac79c296a54abd22900315e9b Mon Sep 17 00:00:00 2001 From: decentclock Date: Wed, 17 Aug 2022 12:40:01 -0600 Subject: [PATCH] Ignore warnings on simple_fs_test --- sphinx-key/src/main.rs | 1 + sphinx-key/src/periph/sd.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/sphinx-key/src/main.rs b/sphinx-key/src/main.rs index 5284d24..8d5c8d8 100644 --- a/sphinx-key/src/main.rs +++ b/sphinx-key/src/main.rs @@ -5,6 +5,7 @@ mod periph; use crate::core::{config::*, events::*}; use crate::periph::led::led_control_loop; +#[allow(unused_imports)] use crate::periph::sd::{mount_sd_card, simple_fs_test}; use anyhow::Result; diff --git a/sphinx-key/src/periph/sd.rs b/sphinx-key/src/periph/sd.rs index d17ccee..5c5f7bc 100644 --- a/sphinx-key/src/periph/sd.rs +++ b/sphinx-key/src/periph/sd.rs @@ -133,6 +133,7 @@ pub fn mount_sd_card() -> anyhow::Result<()> { Ok(()) } +#[allow(dead_code)] pub fn simple_fs_test() { // Create and write a file, append a file, read a file, delete a file, create a directory, write a file