From 196d27b9596439115aec2af09bae828a0ba20408 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Thu, 19 Sep 2019 11:13:27 -0700 Subject: [PATCH] Allow IMFS testing features to be unused --- src/imfs/noop_fetcher.rs | 3 +++ src/imfs/snapshot.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/imfs/noop_fetcher.rs b/src/imfs/noop_fetcher.rs index 02784fd2..be97aa68 100644 --- a/src/imfs/noop_fetcher.rs +++ b/src/imfs/noop_fetcher.rs @@ -1,6 +1,9 @@ //! Implements the IMFS fetcher interface for a fake filesystem using Rust's //! std::fs interface. +// This interface is only used for testing, so it's okay if it isn't used. +#![allow(unused)] + use std::{ io, path::{Path, PathBuf}, diff --git a/src/imfs/snapshot.rs b/src/imfs/snapshot.rs index f84f9b3b..3f12e519 100644 --- a/src/imfs/snapshot.rs +++ b/src/imfs/snapshot.rs @@ -1,3 +1,6 @@ +// This file is non-critical and used for testing, so it's okay if it's unused. +#![allow(unused)] + use std::collections::HashMap; #[derive(Debug, Clone)]