}
}
&Number::Rational(ref r) => {
- let (mut fract, mut floor) = (r.fract(), r.floor());
+ let (_, floor) = (r.fract(), r.floor());
if let Some(floor) = floor.to_i64() {
fixnum!(Number, floor, arena)
use ordered_float::OrderedFloat;
use indexmap::IndexMap;
-use tokio::io::Interest;
use std::cell::Cell;
use std::convert::TryFrom;
use fxhash::{FxBuildHasher, FxHasher};
use indexmap::IndexSet;
-use ref_thread_local::{RefThreadLocal, ref_thread_local};
+pub(crate) use ref_thread_local::RefThreadLocal;
use std::borrow::BorrowMut;
use std::cell::Cell;
use std::cell::{Cell, Ref, RefCell, RefMut};
use std::fmt;
use std::hash::{Hash, Hasher};
-use std::io::{Error as IOError};
+use std::io::Error as IOError;
use std::ops::{Deref, Neg};
use std::rc::Rc;
use std::vec::Vec;
}
fn shift_token(&mut self, token: Token, op_dir: &CompositeOpDir) -> Result<(), ParserError> {
- fn negate_int_rc(mut t: TypedArenaPtr<Integer>) -> TypedArenaPtr<Integer> {
+ fn negate_int_rc(t: TypedArenaPtr<Integer>) -> TypedArenaPtr<Integer> {
let i: Integer = (*t).clone();
let mut data = i.neg();
TypedArenaPtr::new(&mut data)