commit 04527123f2ef3329a7e17e4a4ad786a82645ef96
parent 8ff4a1300d4d7aa95c73be5340fd4c8b4ba4852c
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 7 Apr 2023 18:05:52 -0700
cleanup
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
@@ -13,7 +13,7 @@ use clap::Parser;
use clipboard::ClipboardContext;
use clipboard::ClipboardProvider;
use colors_transform::{Color, Rgb};
-use crossbeam_channel::{self, after, RecvError, select};
+use crossbeam_channel::{self, after, select};
use crossterm::event;
use crossterm::event::Event as CEvent;
use crossterm::event::{MouseEvent, MouseEventKind};
@@ -323,7 +323,7 @@ impl LeChatPHPClient {
let url = format!("{}?action=post&session={}", &full_url, &session);
thread::spawn(move || loop {
// select! macro fucks all the LSP, therefore the code gymnastic here
- let clb = |v: Result<PostType, RecvError>| {
+ let clb = |v: Result<PostType, crossbeam_channel::RecvError>| {
match v {
Ok(post_type_recv) => post_msg(&client, post_type_recv, &full_url, session.clone(), &url, &last_post_tx),
Err(_) => return,