Delete extern crate import.

This commit is contained in:
jcamiel 2021-12-07 14:59:27 +01:00 committed by Fabrice Reix
parent 7431c0d4d7
commit ff817a45da
11 changed files with 3 additions and 22 deletions

View File

@ -2,11 +2,11 @@ use cc::Build;
use std::path::Path;
#[cfg(windows)]
extern crate winres;
use winres::WindowsResource;
#[cfg(windows)]
fn set_icon() {
let mut res = winres::WindowsResource::new();
let mut res = WindowsResource::new();
res.set_icon("../../ci/windows/logo.ico");
res.compile().unwrap();
}

View File

@ -15,9 +15,9 @@
* limitations under the License.
*
*/
extern crate serde_json;
use super::ast::*;
use float_cmp::approx_eq;
pub type JsonpathResult = Vec<serde_json::Value>;

View File

@ -17,9 +17,6 @@
*/
#![cfg_attr(feature = "strict", deny(warnings))]
#[macro_use]
extern crate float_cmp;
pub mod cli;
pub mod http;
pub mod json;

View File

@ -15,8 +15,6 @@
* limitations under the License.
*
*/
extern crate libxml;
use std::collections::HashMap;
use std::ffi::OsStr;
use std::fs::File;

View File

@ -15,9 +15,6 @@
* limitations under the License.
*
*/
extern crate libxml;
extern crate serde_json;
extern crate url as external_url;
use std::collections::HashMap;
#[allow(unused)]

View File

@ -15,7 +15,6 @@
* limitations under the License.
*
*/
extern crate hurl;
use hurl::jsonpath;
use serde_json::json;

View File

@ -15,8 +15,6 @@
* limitations under the License.
*
*/
extern crate hurl;
use hurl::cli;
use hurl::http;
use hurl::runner;

View File

@ -17,8 +17,6 @@
*/
#![cfg_attr(feature = "strict", deny(warnings))]
extern crate float_cmp;
pub mod ast;
pub mod error;
pub mod format;

View File

@ -15,8 +15,6 @@
* limitations under the License.
*
*/
extern crate hurl_core;
use hurl_core::ast::JsonValue;
use std::fs;
use std::fs::File;

View File

@ -15,8 +15,6 @@
* limitations under the License.
*
*/
extern crate clap;
use std::io::Write;
use std::io::{self, Read};
use std::path::Path;

View File

@ -16,8 +16,6 @@
*
*/
extern crate proptest;
use std::fs;
use proptest::prelude::prop::test_runner::TestRunner;