More Rust 2018-ification

This commit is contained in:
Ignotus Peverell
2019-03-06 23:14:18 +00:00
committed by bonedaddy
parent 70fd0f7758
commit c23a90ca1c
3 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,3 @@
#[macro_use]
extern crate nom;
#[macro_use]
extern crate log;
pub mod net;
pub mod sam;

View File

@ -1,4 +1,5 @@
use nom::{alphanumeric, space};
use nom::{space, alphanumeric, named, do_parse, separated_list, take_till_s,
tag_s, call, error_position, tag, alt, take_till};
fn is_space(chr: char) -> bool {
chr == ' ' || chr == '\t'

View File

@ -6,6 +6,7 @@ use std::io;
use std::io::{BufReader, Error, ErrorKind};
use std::net::{Shutdown, SocketAddr, TcpStream, ToSocketAddrs};
use log::debug;
use nom::IResult;
use crate::parsers::{sam_hello, sam_naming_reply, sam_session_status, sam_stream_status};