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,
|
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() {
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue