Merge pull request #1530 from RossSmyth/FixImports

Fixed imports for num-rug-adapter
This commit is contained in:
Mark Thom
2022-07-18 21:36:46 -06:00
committed by GitHub
5 changed files with 7 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ use crate::read::*;
use modular_bitfield::prelude::*; use modular_bitfield::prelude::*;
use ordered_float::OrderedFloat; use ordered_float::OrderedFloat;
use rug::{Integer, Rational}; use crate::parser::rug::{Integer, Rational};
use std::alloc; use std::alloc;
use std::fmt; use std::fmt;
@@ -681,7 +681,7 @@ mod tests {
use crate::machine::partial_string::*; use crate::machine::partial_string::*;
use ordered_float::OrderedFloat; use ordered_float::OrderedFloat;
use rug::{Integer, Rational}; use crate::parser::rug::{Integer, Rational};
#[test] #[test]
fn float_ptr_cast() { fn float_ptr_cast() {

View File

@@ -5,7 +5,7 @@ use crate::machine::partial_string::*;
use crate::parser::ast::*; use crate::parser::ast::*;
use crate::types::*; use crate::types::*;
use rug::{Integer, Rational}; use crate::parser::rug::{Integer, Rational};
use std::convert::TryFrom; use std::convert::TryFrom;

View File

@@ -11,7 +11,7 @@ use std::ops::Neg;
use std::rc::Rc; use std::rc::Rc;
use std::vec::Vec; use std::vec::Vec;
use rug::{Integer, Rational}; use crate::parser::rug::{Integer, Rational};
use fxhash::FxBuildHasher; use fxhash::FxBuildHasher;
use indexmap::IndexMap; use indexmap::IndexMap;

View File

@@ -1,5 +1,6 @@
#[cfg(feature = "num-rug-adapter")] #[cfg(feature = "num-rug-adapter")]
use num_rug_adapter as rug; pub use num_rug_adapter as rug;
#[cfg(feature = "rug")] #[cfg(feature = "rug")]
pub use rug; pub use rug;

View File

@@ -4,7 +4,7 @@ use crate::parser::ast::*;
use crate::parser::char_reader::*; use crate::parser::char_reader::*;
use crate::parser::lexer::*; use crate::parser::lexer::*;
use rug::ops::NegAssign; use crate::parser::rug::ops::NegAssign;
use std::cell::Cell; use std::cell::Cell;
use std::mem; use std::mem;