From 124caec19325d4ccce7887d330571f66d1472237 Mon Sep 17 00:00:00 2001 From: Sayan Nandan Date: Tue, 11 May 2021 19:13:33 +0530 Subject: [PATCH] Disable dead_code lint for 'prospective' modules --- server/src/diskstore/flock.rs | 1 + server/src/diskstore/snapstore.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/diskstore/flock.rs b/server/src/diskstore/flock.rs index 551697a3..b099620b 100644 --- a/server/src/diskstore/flock.rs +++ b/server/src/diskstore/flock.rs @@ -220,6 +220,7 @@ mod __sys { #[cfg(unix)] mod __sys { + #![allow(dead_code)] // TODO: Enable this lint or remove the offending methods //! # Unix platform-specific file locking //! This module contains methods used by the `FileLock` object in this module to lock and/or //! unlock files. diff --git a/server/src/diskstore/snapstore.rs b/server/src/diskstore/snapstore.rs index 02131c26..e2e595c5 100644 --- a/server/src/diskstore/snapstore.rs +++ b/server/src/diskstore/snapstore.rs @@ -24,6 +24,8 @@ * */ +#![allow(dead_code)] // TODO: Enable this lint or remove offending methods + //! # Snapstore //! //! Snapstore is an extremely fundamental but powerful disk storage format which comprises of two parts: @@ -47,9 +49,9 @@ //! > In other words, the `snapstore.bin` file is completely useless without the `snapstore.partmap` file; so, //! if you happen to lose it — have a good day! +use crate::coredb::htable::HTable; use bincode; use serde::{Deserialize, Serialize}; -use crate::coredb::htable::HTable; use std::error::Error; use std::fs; use std::io::prelude::*;