Cleaned up the code.
This commit is contained in:
parent
2c865d43d2
commit
91d8ea079b
1 changed files with 2 additions and 12 deletions
14
src/main.rs
14
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<P: AsRef<Path>>(config_path: P)
|
||||
-> Result<Value, Box<dyn std::error::Error>> {
|
||||
let mut config = String::new();
|
||||
|
@ -143,3 +132,4 @@ fn main() {
|
|||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue