Bring integer arithmetic up to crates.io (#3943)
* split initial * decouple crate * fix tests compilation * fix rlp tests
This commit is contained in:
@@ -21,8 +21,7 @@ use std::mem;
|
||||
use std::fmt;
|
||||
use std::cmp::Ordering;
|
||||
use std::error::Error as StdError;
|
||||
use bigint::uint::{Uint, U128, U256};
|
||||
use bigint::hash::{H64, H128, H160, H256, H512, H520, H2048};
|
||||
use bigint::prelude::{Uint, U128, U256, H64, H128, H160, H256, H512, H520, H2048};
|
||||
use elastic_array::*;
|
||||
|
||||
/// Vector like object
|
||||
|
||||
@@ -163,7 +163,7 @@ impl<'a, 'view> Iterator for RlpIterator<'a, 'view> {
|
||||
#[test]
|
||||
fn break_it() {
|
||||
use rustc_serialize::hex::FromHex;
|
||||
use bigint::uint::U256;
|
||||
use bigint::prelude::U256;
|
||||
|
||||
let h: Vec<u8> = FromHex::from_hex("f84d0589010efbef67941f79b2a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470").unwrap();
|
||||
let r: Rlp = Rlp::new(&h);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
use std::{fmt, cmp};
|
||||
use std::str::FromStr;
|
||||
use ::{Encodable, RlpDecodable, UntrustedRlp, RlpStream, View, Stream, DecoderError};
|
||||
use bigint::uint::U256;
|
||||
use bigint::prelude::U256;
|
||||
|
||||
#[test]
|
||||
fn rlp_at() {
|
||||
|
||||
Reference in New Issue
Block a user