More Rust 2018-ification
This commit is contained in:

committed by
bonedaddy

parent
70fd0f7758
commit
c23a90ca1c
@ -1,8 +1,3 @@
|
||||
#[macro_use]
|
||||
extern crate nom;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
pub mod net;
|
||||
pub mod sam;
|
||||
|
||||
|
@ -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'
|
||||
|
@ -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};
|
||||
|
Reference in New Issue
Block a user