Format code with cargo fmt

This commit is contained in:
Rodolphe Breard 2019-01-18 19:10:12 +01:00
parent 8173cb282a
commit 22c376930b
4 changed files with 20 additions and 13 deletions

View file

@ -7,8 +7,10 @@
// except according to those terms.
use crate::errors::Error;
use nom::{alt, alt_complete, call, complete, cond, do_parse, error_position, map_res, named, opt,
tag, take_until, take_while};
use nom::{
alt, alt_complete, call, complete, cond, do_parse, error_position, map_res, named, opt, tag,
take_until, take_while,
};
use std::str::FromStr;
#[derive(Clone, Debug, PartialEq)]
@ -46,7 +48,8 @@ impl FromStr for Event {
type Err = Error;
fn from_str(s: &str) -> Result<Self, Self::Err> {
let s = s.to_lowercase()
let s = s
.to_lowercase()
.replace("link", "link-")
.replace("tx", "tx-")
.replace("protocol", "protocol-")