aboutsummaryrefslogtreecommitdiff
path: root/packer/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'packer/src/main.rs')
-rw-r--r--packer/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/packer/src/main.rs b/packer/src/main.rs
index a5526e3..2224969 100644
--- a/packer/src/main.rs
+++ b/packer/src/main.rs
@@ -64,7 +64,7 @@ fn pack(input: String, output: String) {
// Выравнивание буфера
if index != 0 {
- while content_buffer.len() % 8 != 0 {
+ while !content_buffer.len().is_multiple_of(8) {
content_buffer.push(0);
}
}
@@ -139,7 +139,7 @@ fn pack(input: String, output: String) {
}
// Выравнивание буфера
- while content_buffer.len() % 8 != 0 {
+ while !content_buffer.len().is_multiple_of(8) {
content_buffer.push(0);
}