Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit ded13b4

Browse files
committed
Remove unnecessary extern-crate statements
1 parent 37e67d3 commit ded13b4

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

profiling/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
name = "profiling"
33
version = "0.1.0"
44
authors = ["Matthias Endler <matthias-endler@gmx.net>"]
5+
edition = "2018"
56

67
[dependencies]
78
# Disabling the default features makes pyo3 choose binary linking
89
hyperjson = { path = "..", default-features = false }
910
structopt = "0.3.2"
1011
clap = "2.33.0"
12+
serde_json = "1.0.40"
1113

1214
[dependencies.pyo3]
1315
version = "0.8.0"

profiling/src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@
1414
//! callgrind_annotate --auto=yes callgrind.out.35583 >out.rs
1515
//! qcachegrind callgrind.out.35583
1616
//! ```
17-
extern crate structopt;
18-
#[macro_use]
19-
extern crate clap;
20-
21-
extern crate hyperjson;
22-
extern crate pyo3;
2317
2418
mod profiles;
2519

2620
use structopt::StructOpt;
21+
use clap::arg_enum;
2722

2823
arg_enum! {
2924
#[derive(Debug)]

src/lib.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
#![feature(test)]
22

3-
#[macro_use]
4-
extern crate failure;
5-
#[macro_use]
6-
extern crate pyo3;
7-
extern crate serde;
8-
extern crate serde_derive;
9-
extern crate serde_json;
10-
extern crate test;
11-
123
use std::collections::BTreeMap;
134
use std::fmt;
145
use std::marker::PhantomData;
6+
use failure::Fail;
157

168
use pyo3::prelude::*;
179
use pyo3::exceptions::TypeError as PyTypeError;
1810
use pyo3::exceptions::ValueError as PyValueError;
1911
use pyo3::types::{PyDict, PyFloat, PyList, PyAny, PyTuple};
12+
use pyo3::{import_exception, wrap_pyfunction};
13+
2014
use serde::de::{self, DeserializeSeed, Deserializer, MapAccess, SeqAccess, Visitor};
2115
use serde::ser::{self, Serialize, SerializeMap, SerializeSeq, Serializer};
2216

0 commit comments

Comments
 (0)