Skip to content

Commit

Permalink
convert info::info_table::TABLE from static to const, `info::en…
Browse files Browse the repository at this point in the history
…ums::{OP_ACCESS_1, OP_ACCESS_2}` from `pub(super) static` to `pub(crate) const`
  • Loading branch information
susitsm authored and Matyas Susits committed Sep 20, 2024
1 parent f5656ec commit 40f17c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rust/iced-x86/src/info/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use core::fmt;
// GENERATOR-BEGIN: OpAccesses
// ⚠️This was generated by GENERATOR!🦹‍♂️
#[rustfmt::skip]
pub(super) static OP_ACCESS_1: [OpAccess; 7] = [
pub(crate) const OP_ACCESS_1: [OpAccess; 7] = [
OpAccess::None,
OpAccess::CondRead,
OpAccess::NoMemAccess,
Expand All @@ -17,7 +17,7 @@ pub(super) static OP_ACCESS_1: [OpAccess; 7] = [
OpAccess::Write,
];
#[rustfmt::skip]
pub(super) static OP_ACCESS_2: [OpAccess; 3] = [
pub(crate) const OP_ACCESS_2: [OpAccess; 3] = [
OpAccess::None,
OpAccess::Read,
OpAccess::ReadWrite,
Expand Down
2 changes: 1 addition & 1 deletion src/rust/iced-x86/src/info/info_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// ⚠️This file was generated by GENERATOR!🦹‍♂️

#[rustfmt::skip]
pub(crate) static TABLE: [(u32, u32); 4936] = [
pub(crate) const TABLE: [(u32, u32); 4936] = [
(0x0000_0000, 0x0090_0000),// INVALID
(0x0000_0000, 0x0090_0000),// DeclareByte
(0x0000_0000, 0x0090_0000),// DeclareWord
Expand Down

0 comments on commit 40f17c3

Please sign in to comment.