Cleaned up the code.

This commit is contained in:
Thelie 2021-04-28 00:41:24 +02:00
parent 2c865d43d2
commit 91d8ea079b

View file

@ -19,7 +19,7 @@ use std::{
format, format,
env::args, env::args,
path::Path, path::Path,
io::{prelude::*,Read}, io::Read,
net::TcpStream, net::TcpStream,
}; };
use irc_proto::command::{ use irc_proto::command::{
@ -31,17 +31,6 @@ use irc_stream::{IrcStream, IrcRead, IrcWrite};
use toml::Value; use toml::Value;
use native_tls::{TlsConnector,TlsStream}; 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<P: AsRef<Path>>(config_path: P) fn get_config<P: AsRef<Path>>(config_path: P)
-> Result<Value, Box<dyn std::error::Error>> { -> Result<Value, Box<dyn std::error::Error>> {
let mut config = String::new(); let mut config = String::new();
@ -143,3 +132,4 @@ fn main() {
); );
} }