SslTransport::close and cleanups

This commit is contained in:
lumi 2017-02-19 02:19:37 +01:00
commit b44ef9cc2c
2 changed files with 19 additions and 16 deletions

View file

@ -4,8 +4,6 @@ use std::convert::Into;
use std::str::FromStr;
use std::string::ToString;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum JidParseError {
NoDomain,
@ -43,7 +41,7 @@ impl FromStr for Jid {
fn from_str(s: &str) -> Result<Jid, JidParseError> {
// TODO: very naive, may need to do it differently
let mut iter = s.chars();
let iter = s.chars();
let mut buf = String::new();
let mut state = ParserState::Node;
let mut node = None;