Skip to content

Commit 4e2564b

Browse files
committed
Minor changes
1 parent 64f7f3f commit 4e2564b

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/image_handler.rs

+2-13
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,6 @@ impl ImageHandler {
161161
&input_images
162162
);
163163
let input_len = input_images.len();
164-
/*
165-
Yes I'm stupid and I need to visualise this
166-
e.g. max columns = 4
167-
and input_len = 10
168-
0 1 2 3
169-
4 5 6 7
170-
8 9
171-
So we've got 4 columns obviously
172-
and 3 rows
173-
*/
174-
175164
let (input_width, input_height) = PngHelper::get_size(&input_images[0]);
176165
let max_columns = max_columns as usize;
177166
let merged_width: usize = max_columns * input_width as usize * output_scale as usize;
@@ -237,7 +226,7 @@ impl ImageHandler {
237226
)
238227
} else {
239228
// this will never happen
240-
panic!("What the fuck")
229+
panic!("If this happened you should probably play lottery")
241230
}
242231
} else {
243232
let pal: PngPalette = palette.clone().into();
@@ -266,7 +255,7 @@ impl ImageHandler {
266255
);
267256
} else {
268257
// this will never happen
269-
panic!("What the fuck")
258+
panic!("If this happened you should probably play lottery")
270259
}
271260
}
272261
}

0 commit comments

Comments
 (0)