From 07dddb7636f0d81a34fa188cf01b265c8eebbffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 1 Mar 2019 14:58:49 +0100 Subject: [PATCH] Update to Rust 2018 --- Cargo.toml | 3 ++- src/lib.rs | 11 ++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2b248d4..9fe4743 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "benchmark_repository" version = "0.1.0" authors = ["Patrick Lühne "] +edition = "2018" [dependencies] git2 = "^0.7" @@ -14,4 +15,4 @@ yaml-rust = "0.4" [dependencies.cpython] git = "https://github.com/dgrunwald/rust-cpython/" -branch = "master" +branch = "master" \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 7a97934..0471d64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,17 +1,10 @@ -extern crate git2; -extern crate pretty_env_logger; -#[macro_use] -extern crate log; -extern crate indicatif; -extern crate tempfile; -extern crate walkdir; - use git2::{Cred, Error, FetchOptions, Index, IndexEntry, IndexTime, Oid, Progress, PushOptions, RemoteCallbacks, Repository, Signature}; +use indicatif::{ProgressBar, ProgressStyle}; +use log::{info, trace}; use std::path::{Path, PathBuf}; use std::string::String; use std::str; use std::sync::Arc; -use indicatif::{ProgressBar, ProgressStyle}; use walkdir::WalkDir; pub struct BenchmarkRepositoryInner