Skip to content

Commit f6a99c1

Browse files
committed
fix(client-lib): unused constant when building without features
1 parent c8f5ca0 commit f6a99c1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mithril-client/src/snapshot_client.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ use crate::file_downloader::{DownloadEvent, FileDownloader};
120120
#[cfg(feature = "fs")]
121121
use crate::utils::create_bootstrap_node_files;
122122
#[cfg(feature = "fs")]
123-
use crate::utils::AncillaryVerifier;
124-
use crate::utils::ANCILLARIES_NOT_SIGNED_BY_MITHRIL;
123+
use crate::utils::{AncillaryVerifier, ANCILLARIES_NOT_SIGNED_BY_MITHRIL};
125124
use crate::{MithrilResult, Snapshot, SnapshotListItem};
126125

127126
/// Error for the Snapshot client

mithril-client/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Utilities module
22
//! This module contains tools needed mostly for the snapshot download and unpack.
33
4-
pub const ANCILLARIES_NOT_SIGNED_BY_MITHRIL:&str = "Ancillary verification does not use the Mithril certification: as a mitigation, IOG owned keys are used to sign these files.";
5-
64
cfg_fs! {
5+
pub const ANCILLARIES_NOT_SIGNED_BY_MITHRIL:&str = "Ancillary verification does not use the Mithril certification: as a mitigation, IOG owned keys are used to sign these files.";
6+
77
mod ancillary_verifier;
88
mod stream_reader;
99
mod bootstrap_files;

0 commit comments

Comments
 (0)