bhcli

A TUI for chatting on LE PHP Chats (onion)
git clone https://git.dasho.dev/n0tr1v/bhcli.git
Log | Files | Refs | README

commit 347f879d3b7057e280c444e935d2d4d1e77f92c1
parent bf6d72fa7de4eb1f26d8cc1c169fa32fd5aaa5d3
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 30 Mar 2023 02:49:11 -0700

cleanup

Diffstat:
Msrc/lechatphp/mod.rs | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lechatphp/mod.rs b/src/lechatphp/mod.rs @@ -416,13 +416,13 @@ fn get_contour_red_pixels(top_left_pt: &Point, img: &DynamicImage) -> Vec<Point> out.push(top_left_pt.add(Point::new(i, 0))); } } - if let Some(px_color) = get_pixel_in_bound(img, i, img_height -1) { + if let Some(px_color) = get_pixel_in_bound(img, i, img_height-1) { if px_color == *RED_COLOR { - out.push(top_left_pt.add(Point::new(i, img_height -1))); + out.push(top_left_pt.add(Point::new(i, img_height-1))); } } } - for i in 1..img_height -1 { + for i in 1..img_height-1 { if let Some(px_color) = get_pixel_in_bound(img, 0, i) { if px_color == *RED_COLOR { out.push(top_left_pt.add(Point::new(0, i))); @@ -433,9 +433,9 @@ fn get_contour_red_pixels(top_left_pt: &Point, img: &DynamicImage) -> Vec<Point> continue; } } - if let Some(px_color) = get_pixel_in_bound(img, img_width -1, i) { + if let Some(px_color) = get_pixel_in_bound(img, img_width-1, i) { if px_color == *RED_COLOR { - out.push(top_left_pt.add(Point::new(img_width -1, i))); + out.push(top_left_pt.add(Point::new(img_width-1, i))); } } }