Skip to content

Commit

Permalink
Remove usage of extern crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Oct 24, 2023
1 parent 6527daa commit 8eea453
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 24 deletions.
2 changes: 0 additions & 2 deletions z3-sys/tests/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate z3_sys;

use std::ffi::{CStr, CString};
use z3_sys::*;

Expand Down
1 change: 1 addition & 0 deletions z3/src/ast.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Abstract syntax tree (AST).
use log::debug;
use std::borrow::Borrow;
use std::cmp::{Eq, PartialEq};
use std::convert::{TryFrom, TryInto};
Expand Down
1 change: 1 addition & 0 deletions z3/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use log::debug;
use std::ffi::CString;

use z3_sys::*;
Expand Down
1 change: 1 addition & 0 deletions z3/src/context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use log::debug;
use std::ffi::CString;

use z3_sys::*;
Expand Down
7 changes: 0 additions & 7 deletions z3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
#![warn(clippy::doc_markdown)]
#![deny(missing_debug_implementations)]

#[macro_use]
extern crate log;

extern crate z3_sys;

extern crate num;

use std::ffi::CString;
use z3_sys::*;
pub use z3_sys::{AstKind, GoalPrec, SortKind};
Expand Down
1 change: 1 addition & 0 deletions z3/src/solver.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use log::debug;
use std::ffi::{CStr, CString};
use std::fmt;

Expand Down
7 changes: 1 addition & 6 deletions z3/tests/lib.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
extern crate env_logger;
#[macro_use]
extern crate log;

extern crate z3;
use log::info;
use std::convert::TryInto;
use std::ops::Add;
use std::time::Duration;
use z3::ast::{Array, Ast, Bool, Int, BV};
use z3::*;

extern crate num;
use num::{bigint::BigInt, rational::BigRational};
use std::str::FromStr;

Expand Down
1 change: 0 additions & 1 deletion z3/tests/objectives.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
extern crate z3;
use z3::ast::Ast;
use z3::*;

Expand Down
2 changes: 0 additions & 2 deletions z3/tests/ops.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate z3;

use z3::{
ast,
ast::{Array, Ast, AstKind, Bool, Dynamic, Float, Int, Real, BV},
Expand Down
7 changes: 1 addition & 6 deletions z3/tests/semver_tests.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
extern crate env_logger;
#[macro_use]
extern crate log;
extern crate semver;
extern crate z3;

use log::info;
use semver::{Version, VersionReq};
use std::collections::HashMap;
use z3::ast::Ast;
Expand Down

0 comments on commit 8eea453

Please sign in to comment.