소스 검색

Revert "Remove unused `allow(dead_code)`"

This reverts commit 5397c1ca4b77cd27082e96aab9ab931631df7fa8.
Tamir Duberstein 9 달 전
부모
커밋
41619933d6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      aya-log/src/lib.rs

+ 2 - 0
aya-log/src/lib.rs

@@ -76,9 +76,11 @@ use bytes::BytesMut;
 use log::{error, Log, Record};
 use thiserror::Error;
 
+#[allow(dead_code)] // TODO(https://github.com/rust-lang/rust/issues/120770): Remove when false positive is fixed.
 #[derive(Copy, Clone)]
 #[repr(transparent)]
 struct RecordFieldWrapper(RecordField);
+#[allow(dead_code)] // TODO(https://github.com/rust-lang/rust/issues/120770): Remove when false positive is fixed.
 #[derive(Copy, Clone)]
 #[repr(transparent)]
 struct ArgumentWrapper(Argument);