YJIT: Fix unread field lint in release builds

```
warning: fields `blue_begin` and `blue_end` are never read
```
This commit is contained in:
Alan Wu 2024-12-11 16:45:23 -05:00
parent 9fe06cc035
commit d53e4545f4
Notes: git 2024-12-11 22:45:01 +00:00
2 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,7 @@ use crate::options::DumpDisasm;
use std::fmt::Write;
#[cfg_attr(not(feature = "disasm"), allow(dead_code))]
#[derive(Copy, Clone, Debug)]
pub struct TerminalColor {
pub blue_begin: &'static str,

View File

@ -152,7 +152,6 @@ pub enum DumpDisasm {
// Dump to stdout
Stdout,
// Dump to "yjit_{pid}.log" file under the specified directory
#[cfg_attr(not(feature = "disasm"), allow(dead_code))]
File(std::os::unix::io::RawFd),
}