Skip to content

Commit

Permalink
Merge pull request #1530 from RossSmyth/FixImports
Browse files Browse the repository at this point in the history
Fixed imports for num-rug-adapter
  • Loading branch information
mthom authored Jul 19, 2022
2 parents 607c84a + 577f850 commit 6b8e620
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::read::*;

use modular_bitfield::prelude::*;
use ordered_float::OrderedFloat;
use rug::{Integer, Rational};
use crate::parser::rug::{Integer, Rational};

use std::alloc;
use std::fmt;
Expand Down Expand Up @@ -681,7 +681,7 @@ mod tests {
use crate::machine::partial_string::*;

use ordered_float::OrderedFloat;
use rug::{Integer, Rational};
use crate::parser::rug::{Integer, Rational};

#[test]
fn float_ptr_cast() {
Expand Down
2 changes: 1 addition & 1 deletion src/machine/heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::machine::partial_string::*;
use crate::parser::ast::*;
use crate::types::*;

use rug::{Integer, Rational};
use crate::parser::rug::{Integer, Rational};

use std::convert::TryFrom;

Expand Down
2 changes: 1 addition & 1 deletion src/parser/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::ops::Neg;
use std::rc::Rc;
use std::vec::Vec;

use rug::{Integer, Rational};
use crate::parser::rug::{Integer, Rational};

use fxhash::FxBuildHasher;
use indexmap::IndexMap;
Expand Down
3 changes: 2 additions & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#[cfg(feature = "num-rug-adapter")]
use num_rug_adapter as rug;
pub use num_rug_adapter as rug;

#[cfg(feature = "rug")]
pub use rug;

Expand Down
2 changes: 1 addition & 1 deletion src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::parser::ast::*;
use crate::parser::char_reader::*;
use crate::parser::lexer::*;

use rug::ops::NegAssign;
use crate::parser::rug::ops::NegAssign;

use std::cell::Cell;
use std::mem;
Expand Down

0 comments on commit 6b8e620

Please sign in to comment.