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

Commit

Permalink
Remove unnecessary extern-crate statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Sep 21, 2019
1 parent 37e67d3 commit ded13b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions profiling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
name = "profiling"
version = "0.1.0"
authors = ["Matthias Endler <[email protected]>"]
edition = "2018"

[dependencies]
# Disabling the default features makes pyo3 choose binary linking
hyperjson = { path = "..", default-features = false }
structopt = "0.3.2"
clap = "2.33.0"
serde_json = "1.0.40"

[dependencies.pyo3]
version = "0.8.0"
Expand Down
7 changes: 1 addition & 6 deletions profiling/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,11 @@
//! callgrind_annotate --auto=yes callgrind.out.35583 >out.rs
//! qcachegrind callgrind.out.35583
//! ```
extern crate structopt;
#[macro_use]
extern crate clap;

extern crate hyperjson;
extern crate pyo3;
mod profiles;

use structopt::StructOpt;
use clap::arg_enum;

arg_enum! {
#[derive(Debug)]
Expand Down
12 changes: 3 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
#![feature(test)]

#[macro_use]
extern crate failure;
#[macro_use]
extern crate pyo3;
extern crate serde;
extern crate serde_derive;
extern crate serde_json;
extern crate test;

use std::collections::BTreeMap;
use std::fmt;
use std::marker::PhantomData;
use failure::Fail;

use pyo3::prelude::*;
use pyo3::exceptions::TypeError as PyTypeError;
use pyo3::exceptions::ValueError as PyValueError;
use pyo3::types::{PyDict, PyFloat, PyList, PyAny, PyTuple};
use pyo3::{import_exception, wrap_pyfunction};

use serde::de::{self, DeserializeSeed, Deserializer, MapAccess, SeqAccess, Visitor};
use serde::ser::{self, Serialize, SerializeMap, SerializeSeq, Serializer};

Expand Down

0 comments on commit ded13b4

Please sign in to comment.