~tsdh/svgrep

e79c372e671dac446db9e544172bf45aa0f58407 — Tassilo Horn 28 days ago f2be4b3
Use 2018 edition and remove unneeded extern crate statements
3 files changed, 3 insertions(+), 10 deletions(-)

M Cargo.toml
M src/lib.rs
M src/main.rs
M Cargo.toml => Cargo.toml +1 -1
@@ 6,7 6,7 @@ homepage = "https://git.sr.ht/~tsdh/svgrep"
repository = "https://git.sr.ht/~tsdh/svgrep"
authors = ["Tassilo Horn <tsdh@gnu.org>"]
license = "GPL-3.0+"

edition = "2018"

[dependencies]
clap = "2.33.3"

M src/lib.rs => src/lib.rs +1 -5
@@ 16,11 16,7 @@
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

#[macro_use]
extern crate lazy_static;
extern crate clap;
extern crate regex;

use lazy_static::lazy_static;
use regex::Regex;
use std::collections::HashMap;
use std::fs::File;

M src/main.rs => src/main.rs +1 -4
@@ 16,11 16,8 @@
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

extern crate clap;
extern crate svgrep;
use svgrep::{build_match_exp, line_iter, svgrep_lines, Config, MatchCharCfg};

use clap::{App, Arg, ArgMatches};
use svgrep::{build_match_exp, line_iter, svgrep_lines, Config, MatchCharCfg};

fn main() {
    let opts = parse_command_line();