refactor(FromStr): move from_str to impl FromStr where it belongs.

This commit is contained in:
Mark Schmale
2018-09-11 18:11:53 +02:00
parent 25a987e0cc
commit 9968d88d61
2 changed files with 26 additions and 15 deletions

View File

@ -1,6 +1,7 @@
extern crate nginx_log_parser;
use nginx_log_parser::Format;
use std::str::FromStr;
fn main() {
let lines = vec![