From 91d8ea079b365d93f369edd86862efb227f4e00b Mon Sep 17 00:00:00 2001 From: Thelie Date: Wed, 28 Apr 2021 00:41:24 +0200 Subject: [PATCH] Cleaned up the code. --- src/main.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8e4837e..b82a74c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ use std::{ format, env::args, path::Path, - io::{prelude::*,Read}, + io::Read, net::TcpStream, }; use irc_proto::command::{ @@ -31,17 +31,6 @@ use irc_stream::{IrcStream, IrcRead, IrcWrite}; use toml::Value; use native_tls::{TlsConnector,TlsStream}; -/* -fn lex_irc_messages(stream: &mut ClientStream) -> irc::error::Result<()> { - while let Some(message) = stream.next().await.transpose()? { - print!("{}", message); - } - - Ok(()) -} - -*/ - fn get_config>(config_path: P) -> Result> { let mut config = String::new(); @@ -143,3 +132,4 @@ fn main() { ); } +