Skip to content

Commit

Permalink
remove unnecessary extern crate declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
René Perschon committed Apr 17, 2024
1 parent 5f09380 commit 3c6b9d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
12 changes: 0 additions & 12 deletions fhttp-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
extern crate apply;
extern crate pest;
#[macro_use]
extern crate pest_derive;
extern crate promptly;
extern crate rand;
extern crate regex;
#[macro_use]
extern crate lazy_regex;
extern crate anyhow;
#[cfg(test)]
extern crate async_std;
#[cfg(test)]
extern crate indoc;
extern crate itertools;
extern crate jsonpath_lib as jsonpath;
extern crate reqwest;
#[cfg(test)]
extern crate rstest;
extern crate serde_json;
extern crate serde_yaml;
extern crate uuid;
#[cfg(test)]
extern crate wiremock_multipart;

Expand Down
2 changes: 1 addition & 1 deletion fhttp-core/src/postprocessing/response_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl ResponseHandler {
}

fn process_body_json(json_path: &str, body: &str) -> Result<String> {
use jsonpath::Selector;
use jsonpath_lib::Selector;
use serde_json::Value;

let value: Value = serde_json::from_str(body)
Expand Down
3 changes: 0 additions & 3 deletions fhttp-test-utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate anyhow;
extern crate fhttp_core;

mod write_test_file;

pub use write_test_file::write_test_file;
9 changes: 4 additions & 5 deletions fhttp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
extern crate clap;
extern crate itertools;
extern crate anyhow;
#[cfg(test)] extern crate temp_dir;
#[cfg(test)] extern crate fhttp_test_utils;
#[cfg(test)]
extern crate fhttp_test_utils;
#[cfg(test)]
extern crate temp_dir;

mod program;

Expand Down

0 comments on commit 3c6b9d3

Please sign in to comment.