Skip to content

Commit d0a5949

Browse files
authored
Fix recent new compiler warnings (#711)
1 parent 4840a9c commit d0a5949

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

core/src/abstractions.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ impl OwnedMeteredSemPermit {
221221
}
222222

223223
#[derive(Debug)]
224-
pub(crate) struct UsedMeteredSemPermit(OwnedMeteredSemPermit);
224+
pub(crate) struct UsedMeteredSemPermit(
225+
// Field isn't read, but we need to hold on to it.
226+
#[allow(dead_code)] OwnedMeteredSemPermit,
227+
);
225228

226229
macro_rules! dbg_panic {
227230
($($arg:tt)*) => {

core/src/worker/workflow/wft_extraction.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ pub(super) struct WFTExtractor {}
2121

2222
pub(super) enum WFTExtractorOutput {
2323
NewWFT(PermittedWFT),
24-
FetchResult(PermittedWFT, Arc<HistfetchRC>),
24+
FetchResult(
25+
PermittedWFT,
26+
// Field isn't read, but we need to hold on to it.
27+
#[allow(dead_code)] Arc<HistfetchRC>,
28+
),
2529
NextPage {
2630
paginator: HistoryPaginator,
2731
update: HistoryUpdate,

0 commit comments

Comments
 (0)