bhcli

"Strange's fork of n0tr1v's bhcli (onion)"
git clone https://git.dasho.dev/Strange/bhcli.git
Log | Files | Refs | README

commit cef2b5a88ef8201b8e1802db8033e51d94f36018
parent 0905bb9dea9093cbc87891bcf4619119ce59a61c
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun,  2 Apr 2023 07:36:19 -0700

simplify code

Diffstat:
Msrc/main.rs | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -1122,10 +1122,9 @@ impl LeChatPHPClient { .iter() .enumerate() .find(|(_, e)| e.date == item.date) - .map(|(i, _)| i) - .unwrap_or(0); + .map(|(i, _)| i); app.clear_filter(); - app.items.state.select(Some(idx)); + app.items.state.select(idx); return; } app.long_message = Some(item.clone());