Skip to content

Commit

Permalink
Fix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Mar 22, 2021
1 parent 359d53a commit b7d6f61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rust/iced-x86/src/formatter/fast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ macro_rules! format_memory_else_block {
// Only one caller has variable args starting from $seg_reg so this is a macro. The compiler is able
// to remove lots of code in all the other cases with literal macro args.
macro_rules! format_memory_code {
($slf:ident, $dst:ident, $dst_next_p:ident, $instruction:ident, $operand:expr, $seg_reg:expr, $base_reg:expr, $index_reg:expr, $scale:expr, $displ_size:expr, $displ:expr, $addr_size:expr) => {
($slf:ident, $dst:ident, $dst_next_p:ident, $instruction:ident, $operand:expr, $seg_reg:expr, $base_reg:expr, $index_reg:expr,
$scale:expr, $displ_size:expr, $displ:expr, $addr_size:expr) => {
#[allow(trivial_numeric_casts)]
{
let mut base_reg = $base_reg;
Expand Down Expand Up @@ -472,7 +473,8 @@ macro_rules! format_memory_code {
};
}
macro_rules! call_format_memory {
($slf:ident, $dst:ident, $dst_next_p:ident, $instruction:ident, $operand:ident, $seg_reg:expr, $base_reg:tt, $index_reg:tt, $scale:tt, $displ_size:tt, $displ:tt, $addr_size:tt $(,)?) => {
($slf:ident, $dst:ident, $dst_next_p:ident, $instruction:ident, $operand:ident, $seg_reg:expr, $base_reg:tt,
$index_reg:tt, $scale:tt, $displ_size:tt, $displ:tt, $addr_size:tt $(,)?) => {
// This speeds up SpecializedFormatter but slows down FastFormatter so detect which
// formatter it is. Both paths are tested (same tests).
// This is fugly but the whole point of this formatter is to be fast which can result in ugly code.
Expand Down

0 comments on commit b7d6f61

Please sign in to comment.