Skip to content

Commit

Permalink
refactor: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Fumuran committed Oct 27, 2023
1 parent 74fdf7c commit 5053822
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assembly/src/assembler/instruction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,4 @@ where
bound_into_included_u64(range.end_bound(), false),
)
})
}
}
2 changes: 1 addition & 1 deletion assembly/src/assembler/instruction/u32_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,4 +475,4 @@ fn compute_max_and_min(span: &mut SpanBuilder) {
// then the second number is equal or larger than the first.
Eqz, CSwap,
]);
}
}
2 changes: 1 addition & 1 deletion assembly/src/ast/nodes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,4 @@ fn test_instruction_display() {
let proc_id = ProcedureId::from(hash);
let instruction = format!("{}", Instruction::ExecImported(proc_id));
assert_eq!("exec.0x0707070707070707070707070707070707070707", instruction);
}
}
2 changes: 1 addition & 1 deletion assembly/src/ast/nodes/serde/deserialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,4 +364,4 @@ fn parse_num_push_params<R: ByteReader>(source: &mut R) -> Result<u8, Deserializ
} else {
Ok(length as u8)
}
}
}
2 changes: 1 addition & 1 deletion assembly/src/ast/nodes/serde/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,4 @@ impl Deserializable for OpCode {
DeserializationError::InvalidValue("could not read a valid opcode".to_string())
})
}
}
}
2 changes: 1 addition & 1 deletion assembly/src/ast/nodes/serde/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,4 +480,4 @@ impl Serializable for Instruction {
}
}
}
}
}
2 changes: 1 addition & 1 deletion assembly/src/ast/parsers/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,4 @@ fn simple_instruction(op: &Token, instruction: Instruction) -> Result<Node, Pars
1 => Ok(Node::Instruction(instruction)),
_ => Err(ParsingError::extra_param(op)),
}
}
}
2 changes: 1 addition & 1 deletion assembly/src/ast/parsers/u32_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,4 @@ pub fn parse_u32_rotl(op: &Token) -> Result<Node, ParsingError> {
}
_ => Err(ParsingError::extra_param(op)),
}
}
}
2 changes: 1 addition & 1 deletion assembly/src/ast/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1067,4 +1067,4 @@ fn assert_correct_module_serialization(source: &str, serialize_imports: bool) {
module_deserialized.import_info = module.import_info.clone();
}
assert_eq!(module, module_deserialized);
}
}

0 comments on commit 5053822

Please sign in to comment.