Skip to content

Commit cfe9549

Browse files
committed
Fix unused warning
1 parent a1ab026 commit cfe9549

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

collector/src/compile/execute/bencher.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ impl<'a> Processor for BenchProcessor<'a> {
272272
}
273273

274274
/// Uploads self-profile results to S3
275-
struct SelfProfileS3Upload(std::process::Child, tempfile::NamedTempFile);
275+
struct SelfProfileS3Upload(
276+
std::process::Child,
277+
// This field is used only for its Drop impl
278+
#[allow(unused)] tempfile::NamedTempFile,
279+
);
276280

277281
impl SelfProfileS3Upload {
278282
fn new(

0 commit comments

Comments
 (0)