Skip to content

Commit cd3b820

Browse files
committed
fix(client): fix clippy warning when using only fs features
1 parent 59b56d7 commit cd3b820

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

mithril-client/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ macro_rules! cfg_unstable {
108108
}
109109
}
110110

111+
#[allow(unused_macros)]
112+
macro_rules! cfg_fs_unstable {
113+
($($item:item)*) => {
114+
$(
115+
#[cfg(all(feature = "unstable", feature = "fs"))]
116+
#[cfg_attr(docsrs, doc(cfg(all(feature = "unstable", feature = "fs"))))]
117+
$item
118+
)*
119+
}
120+
}
121+
111122
pub mod aggregator_client;
112123
cfg_unstable! {
113124
pub mod cardano_database_client;

mithril-client/src/utils/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
44
cfg_fs! {
55
mod stream_reader;
6+
7+
pub use stream_reader::*;
8+
}
9+
10+
cfg_fs_unstable! {
611
mod fs;
712
mod vec_deque_extensions;
813

9-
pub use stream_reader::*;
1014
pub use fs::*;
1115
pub use vec_deque_extensions::VecDequeExtensions;
1216
}

0 commit comments

Comments
 (0)